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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
joshs444
Frequent Visitor

Calculate Cumulative Measure

I have 2 measures that I would like to change to calculate as cumulative totals.

 

The first measure is calculating total quantity sold, and the second is calculating total quantity sold last year.

 

1. SUM QTY = sum('Sales Data'[QTY])  

2. Qty Sold LY = CALCULATE([SUM QTY], DATEADD(DateTable[Date], -1, YEAR))

 

When I put them into a graph by month, it shows the quantity by each month.

 

I would like it to add the values together so that Jan would be Jan, Feb would be Jan+Feb, March would be Jan+Feb+March, etc.....

 

Right now this is the chart I have:

 

joshs444_0-1674593469202.png

The cumulative quantity chart would look more like a line that is up and to the right, as opposed to fluctuating.

 

If anyone knows how to change the chart to go by cumulative total by month, that would be appreciated.

 

Thanks for the help!

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@joshs444 Better Running Total - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.