Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
leeham
Frequent Visitor

Prevent all slicers manipulating a measure bar one - date

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

1 ACCEPTED SOLUTION
Smalfly
Resolver III
Resolver III

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])
)

View solution in original post

2 REPLIES 2
Smalfly
Resolver III
Resolver III

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!



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors