Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am wondering if code exists to prevent a measure being manipulated by all slicers except for one named - date?
If i've understood correctly, i can use the ALL function to prevent manipulation to a measure like the example code below, but wonder if there is but allow this one thing through?
I made up the except line to give a bit of context to what i am thinking.
Total Balance no slice except date =
CALCULATE(
sum(table1[balance])
,ALL(table1)
,EXCEPT(table1[date]
)
Thanks
Solved! Go to Solution.
Hi @leeham ,
did you try the allexcept funtion?
Your measure would then become something like this:
Total Balance no slice except date =
CALCULATE(
sum(table1[balance])
,ALLEXCEPT(table1[date])
)
Hi @leeham ,
did you try the allexcept funtion?
Your measure would then become something like this:
Total Balance no slice except date =
CALCULATE(
sum(table1[balance])
,ALLEXCEPT(table1[date])
)
how i missed that in searches i do not know - so close when i put except. Thank you!
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
27 | |
12 | |
11 | |
10 | |
6 |