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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ConfusedWolf
Regular Visitor

Cumulative Sum Not Working

Hi all.

 

First time post, so please forgive me if the answer is obvious. I'm seeking to create a pareto chart with customer name on the x axis and volume on the y. This chart must be dynamic and adapt when I change the date fields and selected site. 

 

I have this working perfectly when only one whole month is selected by first building a new table as follows:

 

MMByCustomer =
SUMMARIZECOLUMNS (
'Query1'[site_name],
'Query1'[customer_name],
'Query1'[full_date],
"Result",sum(Query1[actuals_material_margin_corp])
)

 

And then using the following measure:

Cumulative2 = SUMX (
FILTER (
ALLSELECTED (MMByCustomer),
'MMByCustomer'[Result] >= Max ( MMByCustomer[Result])
),
MMByCustomer[Result])

 

The result for one month is perfect:

 

 

ConfusedWolf_1-1718712180050.png

 

Unfortunately, when I expand to two months, the cumulative total stops functioning as expected:

 

 

ConfusedWolf_2-1718712950217.png

 

 

For the record, when I filter, I am using slicers linked to MMByCustomer[full_date] and MMByCustomer[site_name].

 

Many thanks in advance,

 

ConfusedWolf

 

2 REPLIES 2
Greg_Deckler
Super User
Super User

@ConfusedWolf Try this approach: Better Running Total - Microsoft Fabric 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thanks for the advice Greg. Sadly, I still can't get that to work. On your example, you have the months on the x axis, but I am trying to see customer name on mine. I can't figure out how to adapt your approach to show this.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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