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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
SebSchoon1
Post Patron
Post Patron

Running total only shows final value accross dates

Hello Guys,

 

i use this formula

 

1-RT STOCK pas mal 2 = 

VAR _selecteddate = SELECTEDVALUE('4- Calendrier période n'[Date])

VAR _datemax = CALCULATE(MAX('4- Calendrier période n'[Date]), ALL ('BDD - Lignes de mouvements'))

RETURN

IF( _selecteddate> _datemax,BLANK(),CALCULATE('1-Mesures sur mouvements de stock'[Test aggregation stock],ALL('4- Calendrier période n'[Date]),'4- Calendrier période n'[Date] <= _selecteddate))

However when i used it with another date field than ==> '4- Calendrier période n'[Date] into my visual

 

it only shows the final value of the calculation, which is 4 and this on each row of the visual.

 

if i use '4- Calendrier période n'[Date]  it runs out of memory even in i use slicers to show only one item.

 

Any help?

 

i'm struggling with these running totals for ages now.

 

I have 12million rows and many warehouses, it is a real pain to find something working well.

 

2 REPLIES 2
Padycosmos
Solution Sage
Solution Sage

amitchandak
Super User
Super User

@SebSchoon1 , Try new window function, that should do a better job

 

Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors