Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have seen this question many times, but I don't get the solution to work.
I have two measures: YTD_endringer and YTD_benchmark
The first measure should calculate the cumulative total, based on the slicer. The second should be fixed, calculating the total ignoring the the slicer.
My measure looks like this, using the all() function to ignore to no prevail.
YTD_benchmark = CALCULATE(
SUM(endringer[ANTALL]),
FILTER(
ALLSELECTED(endringer),
endringer[WeekNumber] <= MAX(endringer[WeekNumber])
&& endringer[DATO].[Year]= MAX(endringer[DATO].[Year])
), all(endringer[KUNDE])
)
Any help is much appreciated, thanks!
Solved! Go to Solution.
It worked like a charm, but could you explain why? Wasn't too intuitive based on other solutions I have seen.
Sorry @Greg_Deckler , I was celebrating pre-maturaly.
By putting all(endringer) it ignores all the slicers, whilst I would like it to only ignore just one specific.
Is there a way to kind of turn on the others, but still ignoring just the one?
For completion, it works with allexcept(table, col1, col2, etc), except the one I want to ignore. It's a litte bit hacky, if I would have a ton of slicers. Luckily - I do not.
Yeah, another way of doing it would likely be to use REMOVEFILTERS function which you would want to do if you had tons of slicers.
I see, thank you for the help!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
85 | |
66 | |
52 | |
47 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |