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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.