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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
niberxz
Regular Visitor

Cumulative issue

Hello everyone, I am trying create an acomulative sum by date but recently I found a issue using this:

  • CALCULATE(DISTINCTCOUNT(Gestion[GesTot]),FILTER(all(Gestion),Gestion[FecGestion]<=max(Gestion[FecGestion])))

I was using the same statement with countax like this:

  • intensidad = CALCULATE((COUNTAX(Gestion,Gestion[VecesLlamada]>0)),FILTER(ALL(Gestion),Gestion[FecGestion]<=max(Gestion[FecGestion])))

This is the graph of "DISTINCTCOUNT(Gestion[GesTot])"

Screenshot_21.png

and this is "CALCULATE(DISTINCTCOUNT(Gestion[GesTot]),FILTER(ALL(Gestion),Gestion[FecGestion]<=max(Gestion[FecGestion])))"

Screenshot_22.png

The previous graph should have the accumulated sum by date and not be linear.

 

2 REPLIES 2
MalS
Resolver III
Resolver III

Is "Gestion[FecGestion]" your Date field in your calendar table, because that's what you need for a cumulative sum. Here's a great explanation of the pattern: http://www.daxpatterns.com/cumulative-total/  

 

Also, you say you want to do a sum, but you are using DISTINCTCOUNT - is that intentional?

Vvelarde
Community Champion
Community Champion

@niberxz

 

Hi, please sample Data to Evaluate a Solution to this.

 

Thanks




Lima - Peru

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

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

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.

Users online (5,336)