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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.