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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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