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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
M_SBS_6
Helper V
Helper V

All years cumulative

Hi, 

I have 8 years worth of data and what I'd like to see is the all years total cumulative value split by month as the x-axis.

The date is app_date (which I'll use the month as the x-axis and the value app_value

App_date  app_value.  Cumulative 

Jan.              1000.           1000

Feb.              3000.           4000

Mar.              2000.           6000

Apr.               1000.           7000

May.               2000.         9000

Jun.                1000.          10000

Jul.                 4000.           14000

Aug.               1000.          15000

Sep.               1000.           16000

Oct.                2000.          18000

Nov.               2000.           20000

Dec.                5000.          25000

1 ACCEPTED SOLUTION

Hi @M_SBS_6 

You can refer to the following solution.

Sample data 

vxinruzhumsft_0-1702275021726.png

Create a measure

Measure = CALCULATE(SUM('Table'[app_value]),'Table'[App_date]<=MAX('Table'[App_date]),ALLSELECTED('Table'))

Then put the measure to the visual

vxinruzhumsft_1-1702275106343.png

 

Output

vxinruzhumsft_2-1702275116853.png

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

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
CoreyP
Solution Sage
Solution Sage

If I understand you correctly, you mean you want to see the cumulative value for january of all years aggregated together? Like below...

 

Sample Data on the Left

Cumulative aggregated by month for all years on the Right

CoreyP_0-1702077043568.png

 

Hi @CoreyP @ yes, that's exactly right. If you would be so kind to share how you got to this, that would be great thank yo

Hi @M_SBS_6 

You can refer to the following solution.

Sample data 

vxinruzhumsft_0-1702275021726.png

Create a measure

Measure = CALCULATE(SUM('Table'[app_value]),'Table'[App_date]<=MAX('Table'[App_date]),ALLSELECTED('Table'))

Then put the measure to the visual

vxinruzhumsft_1-1702275106343.png

 

Output

vxinruzhumsft_2-1702275116853.png

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.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.