cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
newbie9292
Helper II
Helper II

Sum of income for future sales

Hello,

 

I am trying to write a measure for a column that shows all the order income from next month.

Offen_gewichtet betrag = CALCULATE ( SUM ( 'test-dw fact_sellify_master'[Gewichteter Betrag] ),USERELATIONSHIP('test-dw fact_salesforecast_master'[JOIN_ID],'test-dw dim_sellify_verkaufsdetails'[JOIN_ID]),'test-dw dim_sellify_verkaufsdetails'[Status]="Offen",'test-dw dim_date'[Month]>=9)
 
This works okay when I select the year 2022 in the filter but my visual breaks when I select next future years let's say 2023 and 2024. So my expected result is to show all the months of 2023 but it shows only from September (since I have hardcoded September in the measure).
1 REPLY 1
v-yadongf-msft
Community Support
Community Support

Hi @newbie9292 ,

 

Do you want to show the order income from next month? If it is like this, please try following DAX:

 

Offen_gewichtet betrag = CALCULATE ( SUM ( 'test-dw fact_sellify_master'[Gewichteter Betrag] ),USERELATIONSHIP('test-dw fact_salesforecast_master'[JOIN_ID],'test-dw dim_sellify_verkaufsdetails'[JOIN_ID]),'test-dw dim_sellify_verkaufsdetails'[Status]="Offen",'test-dw dim_date'[Month] = 'test-dw dim_date'[Month]+1)

 

 

If I misunderstand your demands, please feel free to contact us in time and had better share with me some data screenshoots of you after hiding sensitive data.

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

Power BI Dev Camp Session 32

Ted's Dev Camp - March 30, 2023

In this session, we'll examine important design issues and decisions that arise when developing with Power BI embedding.

Top Solution Authors