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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Running Total suddenly reduced / stutters

Dear community

 

I have made a running total for the number of new patients in my organization. The formula is composed of three parts; the number of patients at the end of 2020 (611), running total for new patients up until last month, and running total based on a forecast model for future months. 

 

LøbendeAntal = 611 
+ CALCULATE(
	COUNTROWS('Forløb (udtræk)'), 
        'Forløb (udtræk)'[Kategori] = "Henvisning", 
        FILTER(ALLSELECTED('Forløb (udtræk)'), 'Forløb (udtræk)'[Dato] <= MAX('Forløb (udtræk)'[Dato])))
+ CALCULATE(
	COUNTROWS('Forecast'), 
        'Forecast'[Kategori] = "Henvisning", 
        FILTER(ALLSELECTED(Forecast), Forecast[Dato] <= MAX(Forecast[Dato]))) 

 

 

 

However, it seems something is wrong as a 'stutter' in the running total appears. This happens 3 times in the curve.

 

HeidiTr_0-1622711144157.png

 

I have figured out it is a part of the second part of the equation, but cannot figure out how to fix it. There are no "reducements" in the data. It should only go up, up, up.

 

Any idea what could cause this?

 

Thanks in advance!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

It's werid.Your report works fine on my side 😅. And I did not do any chanages except for changing the slicer's selected range:

works fine.PNG

 

My Power BI Desktop version is 2.93.981.0 64-bit (May 2021) , please upgrade yours and try again.

 

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

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

I have built a data sample to test your measure, but everything works fine.

Measure = 
   CALCULATE(COUNTROWS('Table'),FILTER(ALLSELECTED('Table'),'Table'[Date]<=MAX('Table'[Date]))) 
+  CALCULATE(COUNTROWS('Forecast'),FILTER(ALLSELECTED('Forecast'),'Forecast'[Date]<=MAX('Forecast'[Date])))

count.PNG

So please first check on which days the data is wrong or just share me with your pbix file after removing sensitive data so that I could have a test again.

 

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

Anonymous
Not applicable

Dear Eyelin

Thank you so much for looking into it. As a new member of the community I don't have the option to attach files, but you should be able to access it through this link: https://we.tl/t-Lb7qLCw1CX

The first decline happens at between May-Nov '27, and then again in '29 and '31. If I remember coorectly.

/Heidi

Anonymous
Not applicable

Hi @Anonymous ,

 

It's werid.Your report works fine on my side 😅. And I did not do any chanages except for changing the slicer's selected range:

works fine.PNG

 

My Power BI Desktop version is 2.93.981.0 64-bit (May 2021) , please upgrade yours and try again.

 

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

Anonymous
Not applicable

I can only get the March '21 update, as it is my work computer and the admin only allows for new updates a few times a year. I'm gonna have to wait for a few months, but I believe you are right 😊

Anonymous
Not applicable

Wait, what! I'm relieved, but also a bit annoyed haha - I've spent soooo many hours trying to figure it out. I'm gonna have to check which version I have, and I'll post an update and mark the post solved afterwards. Thank you!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.