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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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