Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
I am trying to calculate the running total, but it is not working as I want. If you look at the pictures below, it works if I don't apply any filter, but if for instance I want to see the data for 2018, I would expect to see under running total in february 2018 the number 3 and in correspondence of march 2018 the number 4...the sum of february and march...but I see always the number 8 and 9...what is wrong? the formula I used is:
Solved! Go to Solution.
My guess would be to use ALLSELECTED, instead of ALL https://docs.microsoft.com/nl-nl/dax/allselected-function-dax
@klod78 , Try like
Running total =
CALCULATE (
SUM('Sheet1 (2)'[Count]);
FILTER(
ALLselected('Sheet1 (2)' );
'Sheet1 (2)'[IntrDate] <= MAX('Sheet1 (2)'[IntrDate])
)
)
@klod78 , Try like
Running total =
CALCULATE (
SUM('Sheet1 (2)'[Count]);
FILTER(
ALLselected('Sheet1 (2)' );
'Sheet1 (2)'[IntrDate] <= MAX('Sheet1 (2)'[IntrDate])
)
)
Here is a running total pattern:
Running Total =
VAR MaxDateInFilterContext =
MAX ( Dates[Date] )
VAR MaxYear =
YEAR ( MaxDateInFilterContext )
VAR DatesLessThanMaxDate =
FILTER (
ALL ( Dates ),
Dates[Date] <= MaxDateInFilterContext
&& Dates[Calendar Year Number] = MaxYear
)
VAR Result =
CALCULATE (
[Total Sales],
DatesLessThanMaxDate
)
RETURN
Result
My guess would be to use ALLSELECTED, instead of ALL https://docs.microsoft.com/nl-nl/dax/allselected-function-dax
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 60 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 122 | |
| 117 | |
| 37 | |
| 34 | |
| 30 |