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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
dbattin4
Frequent Visitor

Running Total Measure Won't Work With Filters

I have a running total Measure that is working

Revenue Budget Running Total =
 CALCULATE(
 SUMX(BudgetByProduct,[REVENUE_BUDGET]),
 FILTER(ALLSELECTED('Calendar'[global_date]),'Calendar'[global_date]<=MAX('Calendar'[global_date])
 ))
 
But when I apply a filter to this measure I don't get any results and I can't see why
Budget IRT RT =
CALCULATE([Revenue Budget Running Total],
FILTER(BudgetByProduct,BudgetByProduct[ProductOrigin]="IRT"))
 
Have looked at many solutions but none have worked to date
1 ACCEPTED SOLUTION

I have resolved this by changing the order of the creation of the measures.

Created a filtered sum then created another measure for the running total of that sum


View solution in original post

7 REPLIES 7
v-saisrao-msft
Community Support
Community Support

Hi @dbattin4,

Since your issue has been resolved, kindly mark the helpful reply as the solution. This will assist other members who may encounter similar issue.

 

Thank you.

Praful_Potphode
Super User
Super User

Hi @dbattin4 

 

as mentioned by @MFelix  please provide more information on input/output.

i tried replicating your measures in PBI desktop.

Most of them are working fine.the only time you will get blank for the second measure is when you select anything else than "IRT".Sample PBIX can be donwloaded from here.

Praful_Potphode_0-1763028210981.gif

 

 

Please give Kudos or mark it as solution once confirmed.

 

Thanks and Regards,

Praful

MFelix
Super User
Super User

Hi @dbattin4 ,

 

Without any further information or example is difficult to give you the exact problem. Not sure what you are using this calculation for but have you tried the visual calculations, there is a running sum that will be applied to the visual you are working with.

 

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview

 

But if you want to reuse this one for sure you need a measure.

 

Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





I have resolved this by changing the order of the creation of the measures.

Created a filtered sum then created another measure for the running total of that sum


Hi @Praful_Potphode ,

 

Glad you were able to solve it don't forget to accept as solution the correct answer so it can help others, even if it is yours.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





Thank you so much @MFelix 

ThomasWeppler
Impactful Individual
Impactful Individual

Hi dbattin4

Why does one of your calculations use allselected and the other doesn't?
Allselected() remove all filters but the ones you have specificly selcted, so I just think you need to deleted that from your DAX and it should work fine.

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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