Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Looking to create a running total of Inventory and find when it first goes negative - but can't even get the running total to work!
Have a table that looks like this - and I'd like the Inventory over time to be a running total - but as you can see - thats not working:
Current Calculation:
Inventory over Time =
VAR maxdate = MAX(_Calendar[Date])
RETURN
CALCULATE(
SUM('Inventory Watch (Supply and Demand)'[Due Qty]),
'Inventory Watch (Supply and Demand)'[CURDUE] <= maxdate,
ALL('Inventory Watch (Supply and Demand)'[CURDUE])
)
Not sure what I'm doing wrong - but its just giving me the line item qty.
Here's my relationships - in case those are the issue:
Solved! Go to Solution.
Got it to work (had to start over - but figured I'd share)
First Calculated the overall qty
Total Due Qty = Sum('Inventory Watch'[Due Qty])
Not entirely sure what I was doing wrong - but it seemed to start working when I pulled my Total Due Qty out into its own measure - but that may not have actualyl been correlated - I tried too many things at once!
Got it to work (had to start over - but figured I'd share)
First Calculated the overall qty
Total Due Qty = Sum('Inventory Watch'[Due Qty])
Not entirely sure what I was doing wrong - but it seemed to start working when I pulled my Total Due Qty out into its own measure - but that may not have actualyl been correlated - I tried too many things at once!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!