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! Request now
Hi,
i have an issue with combining a running total with page filters.
my dataset:
| date (first of month) | region | sales MTD |
| 01-Jan-2021 | a | 10 |
| 01-Feb-2021 | a | 12 |
| 01-Mar-2021 | a | 4 |
| 01-Apr-2021 | a | 8 |
| 01-Jan-2021 | b | 12 |
| 01-Feb-2021 | b | 6 |
| 01-Mar-2021 | b | 9 |
| 01-Apr-2021 | b | 11 |
I have 2 graphs: 1 period to date (sales MTD per date (first of month)) and 1 running total. `This is working fine:
When the date slicer is set to e.g. Feb-01-2021, I want the running total in the first displayed month (Feb-01-2021) to sum the values of Jan-01-2021 and Feb-01-2021 (values 10+12+12+6 = 40) and the other columns the running total. This is also working fine:
I used this formula to calculate the running total:
so far so good.
but next I want to add a page filter region (in the real dataset on more than 1 column, but for this example I only used region as an page filter).
I have tried several options. I was thinking on combing the Filter All() with Allselected (or in values) or Allexcept. But to no avail.
Is there a way to use a pagefilter with the All() Filter?
Solved! Go to Solution.
I found the solution by using ALLEXECEPT:
I found the solution by using ALLEXECEPT:
@avanroij , Try with allselected
Sales running total =
CALCULATE(
sum(Blad1[sales MTD]),
FILTER(
ALLselected(Blad1),
'Blad1'[date (first of month)] <= max(Blad1[date (first of month)])
))
or
Sales running total =
CALCULATE(
sum(Blad1[sales MTD]),
FILTER(
ALL(Blad1[date (first of month)] ),
'Blad1'[date (first of month)] <= max(Blad1[date (first of month)])
))
or
Sales running total =
CALCULATE(
sum(Blad1[sales MTD]),
FILTER(
Blad1,
'Blad1'[date (first of month)] <= max(Blad1[date (first of month)])
), removefilters(Blad1[date (first of month)] ))
thanks for your help.
CALCULATE(
sum(Blad1[sales MTD]),
FILTER(
ALL(Blad1[date (first of month)] ),
'Blad1'[date (first of month)] <= max(Blad1[date (first of month)])
))
is also working, next to my own solution of using:
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!
| User | Count |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 46 | |
| 44 |