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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Calculating cumulative sum by date, but remove blanks

Hi All,

 

Real NOOB here with Power Bi, but I have imported data from Excel, and it contains a date column for "Expense_Planned" and a colum for "Amount".  (Obviously there is other datea, but these are my main focus for now) I am using the following calculation to get to cumulative sum by date:

 

Planned Sum = (
CALCULATE(
    sum('Table'[Amount] ),
    FILTER(ALL('Table'),'Table'[Expense_Planned]<=max('Table'[Expensed_Planned])))
)
 
It appears to work with the exception that there are rows where the Expense_Planned is blank ('null').  I want ot exclude them from the calculation.  The calculation works as expected, but is off by the exact amount in the rows with this blank cell.  I figured using a Filter would work, but if I omit "blank" with the filter, all that does is not show the row in the table. 
 
Thanks!
2 REPLIES 2
Anonymous
Not applicable

I created a small example:

 

Sample File 

sayaliredij
Solution Sage
Solution Sage

Hi @Anonymous 

 

Could you share sample pbix file with expected output? You can remove all sensitive and irrelevant data 

Its quite difficult to understand what in which table the blank row should show when you apply blank filter

 

Thanks,

Sayali





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

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.