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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Regular Visitor

Running total - Visual Filter

Hello Power Bi Community,

Apologies upfront for my amateur view and approach to this. 

I'm trying to create a running total of our stock based on data extracted through an API from Salesforce. My data runs from 2005 until now.



I've created a quick-measure which does partially what I need:

1. Total PW = CALCULATE(
ALLSELECTED('Dates for Phonewords'[Date]),
ISONORAFTER('Dates for Phonewords'[Date], MAX('Dates for Phonewords'[Date]), DESC)



The only Issue I have with this is that I need a running total from the very first date of my data point even after I filter down the visual level of my column chart. Currently when I only want to display the running total from this fiscal year (01.07.17- YTD), it starts from 0 and doesnt include the running total value until the 30.06.17.




How do I approach this? 

BI - Inquiry 1.PNGBI - Inquiry 2.PNG


Super User
Super User



Try this


=CALCULATE(COUNTA('PhoneWord'[Name]),DATESBETWEEN('Dates for Phonewords'[Date],MINX(ALL('Dates for Phonewords'[Date]),'Dates for Phonewords'[Date]),MAX('Dates for Phonewords'[Date])))


Hope this helps.

Ashish Mathur

Hi Ashish,

thanks for your help.

However it appears that the value is inaccurate. The maximum value of the running total is 3k short.
Also it seems to be less flexible to the filters.

Any other recommendations?



I need to see your file.  What do you mean by "seems to be less flexible to the filters"?

Ashish Mathur

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors