Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi everyone,
I am barely new to Power BI and I'm currently working on this Running Total calculation that is just not working for me.
The idea of it is to run sums ( %AVG ) on a 2-level matrix Order by SumAVG and in Reverse. There is also a filter InMarkets on Filter Pane that whenever is applied it just messes with the calculation and it fixes when it's removed.
I've tried working with this idea I got from somewhere else but I can't seem to grasp the definitive solution (I couldn't find the link to show the source, I'm sorry...)
Hi,
Thanks for the solution Sahir_Maharaj offered, and i want to offer some more information for user to refer to.
hello @beginner_dax , based on your code, do you want to accumulate the [%AVG] by the [SumAVG] soring?
Best Regards!
Yolo Zhu
Hello @Anonymous . Indeed, I am trying to accumulate [%AVG] based on [SumAVG]. I believe the issue I'm coming across is the InMarkets in the Filter Pane, when it's applied then the calculation doesn't work.
Hi @Sahir_Maharaj
I tried the approach and got Resources Exceeded error. I tried narrowing the data but still getting the same result.
Hello @beginner_dax,
Can you please try this approach:
RT =
VAR CurrentMarket = MAX('FACT_TABLE'[MARKET_DSC])
VAR CurrentSumAVG = CALCULATE([SumAVG])
VAR FilteredTable =
FILTER(
ALLSELECTED('FACT_TABLE'),
'FACT_TABLE'[MARKET_DSC] <= CurrentMarket
&& [SumAVG] >= CurrentSumAVG
)
RETURN
SUMX(FilteredTable, [%AVG])
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |