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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Rovshan-Hasanov
Regular Visitor

Cumulative sum shows blank values

I have a measure that sums all debit transactions: 

RovshanHasanov_0-1728944721547.png

 

I also have a measure that is supposed to find cumulative sum based off of the first measure:

RovshanHasanov_1-1728944784778.png

 

However, when there is no debit transaction in a given month, cumulative sum returns blank:

RovshanHasanov_2-1728944848038.png

 

It is supposed to return cumulative sum of all debit transactions that happened before or on the last day in a given context 

1 ACCEPTED SOLUTION

I set it to both and still using the same formula. Cumulative sum still returns correctly.

danextian_0-1728960303854.png

danextian_1-1728960321838.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

5 REPLIES 5
Rovshan-Hasanov
Regular Visitor

thank you for your reply. turns out that problem stems from data connection. it was set to both way. i needed it that way for another reason so needed to change the measure to include CROSSFILTER to change the direction for this case

I set it to both and still using the same formula. Cumulative sum still returns correctly.

danextian_0-1728960303854.png

danextian_1-1728960321838.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
danextian
Super User
Super User

Hi @Rovshan-Hasanov 

 

You're making a cumulative sum on the Date dimension instead of the whole calendar table so the ALL context is applied to that dimension only. Apply it to the whole of the table instead.

danextian_1-1728948297938.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Rovshan-Hasanov
Regular Visitor

i have tried that. in that case, cumulative measure returns  0, which is still not i want. put it differently, i want it to carry forward the previous period's number when there is no transaction in the current period

djurecicK2
Super User
Super User

Hi @Rovshan-Hasanov ,

 This behavior is by design. In order for the cumulative measure to return a non-blank value, you need to return 0 instead of blank with the original measure. You can accomplish this by using a combination of IF and ISBLANK: 

https://learn.microsoft.com/en-us/dax/isblank-function-dax

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors