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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors