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
Anonymous
Not applicable

Running total on stacked column chart - show 0 where blank or previous value by category

Hello everyone,
Have anyone faced with Running total calculation problem in Stacked column when it's showing 0 by category in columns where blank or previous value
 
I have faced with same problem, and couldn't find the right solution,
I would be very thankful for sharing your experience
3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous ,Have tried running total with help from date table.

 

example: Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=max(date[Date])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Hello Amit, do you know how to solve it? I really need this and honestly have no clue how to solve this inconvenience?

Anonymous
Not applicable

@amitchandak Yes I'm using the exact same measure in my report: Actions YTD = CALCULATE([Total];FILTER(ALLSELECTED(Action_Log[Mon-Year]);Action_Log[Mon-Year] <= MAX(Action_Log[Mon-Year])))

 

But when I put it in stacked column chart by category I get the situation where for last month I don't have one of the 3 category because at that month there wasn't any data related to that category. What I want is to have the same amount for that category as in previous month in such case. Insteaed I get only 2 category out of 3.

I don't know how to solve it, 

Maybe you have any ideas 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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