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
Elofly
Frequent Visitor

Running Total with blank value not cumulating values

Hello,

 

I have build up this formula to retrieve Running Totals for the amount of hotel chains signed in the past years:

Running Total Hotel Chains Signed =
CALCULATE(
    DISTINCTCOUNT(tbHotelChains[IdHotelChain]),
    FILTER(
        ALL(tbHotelChains),
        tbHotelChains[CommercialNotificationDate]<= MAX(tbHotelChains[CommercialNotificationDate])
    )
)
 
However the results I get is the following:
YearMonthCount of IdHotelChainRunning Total Hotel Chains Signed
2022January11933
2022February11934
2022March 1872
2022April 1872
2022May41938
2022June41942
2022July11943
2022August11944
2022September 1872
2022October 1872
2022November 1872
2022December 1872
2021January31907
2021February61913
2021March41917
2021April41921

 

So that when data is BLANK, the running total is getting bacl to previous values, how can I avoid that?

 

Thanks

 
2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Elofly 

 

I simply simulated some data in the hope of restoring your problem, but it didn't work out.

vzhangti_0-1668563596061.png

Can you tell us more details about your source data?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jihwan_Kim
Super User
Super User

Hi,

In the visualization and in the measure, please try using year column and month column from a dim-calendar table, instead of using those from the fact table.

Thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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