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
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.