Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
anabianco09
Helper II
Helper II

Cumulative Values taking two parameters into consideration

Hi all, I am trying to plot a cumulative value for sales over the year (by months here) (

Cumulative Revenue = CALCULATE(SUM('AOP 2023 - Program'[Expected Revenue (converted).amount]), FILTER(ALLSELECTED('AOP 2023 - Program'), 'AOP 2023 - Program'[Estimated Ship Date] <= MAX('AOP 2023 - Program'[Estimated Ship Date])))) 

, and I am using the stacked column chart. When I don't stack the columns, the values cumulate as it should do:

anabianco09_0-1676916092643.png

However, when I use the legend option for that, it messes up the visual:

anabianco09_1-1676916184613.png

Is there a way for me to add the parameter of the legend as a cumulative parameter together with the date?

 

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @anabianco09 

You can try the following measure

Cumulative Revenue = CALCULATE(SUM('AOP 2023 - Program'[Expected Revenue (converted).amount]), FILTER(ALL('AOP 2023 - Program'), 'AOP 2023 - Program'[Estimated Ship Date] <= MAX('AOP 2023 - Program'[Estimated Ship Date])))

Best Regards!

Yolo Zhu

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

View solution in original post

2 REPLIES 2
v-xinruzhu-msft
Community Support
Community Support

Hi @anabianco09 

You can try the following measure

Cumulative Revenue = CALCULATE(SUM('AOP 2023 - Program'[Expected Revenue (converted).amount]), FILTER(ALL('AOP 2023 - Program'), 'AOP 2023 - Program'[Estimated Ship Date] <= MAX('AOP 2023 - Program'[Estimated Ship Date])))

Best Regards!

Yolo Zhu

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

anabianco09
Helper II
Helper II

It is clear to see that the legend (job stage) breaks it: 

anabianco09_0-1676916261265.png

but even so, I wanted to have them cumulated ....

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.