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
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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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