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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Measures to be depended only on one slicer and not others

Hi,

 

I have a measure which  assigns 1 if the date is maximum of the two dates selected in the slicersand 0 otherwise.

Ishan25_0-1596622646422.png

It works fine as long as i have both the dates in the visual table.

Ishan25_1-1596622860130.png

 

But as sson as i filter to Item location zz4 using item location another slicer it shows 1 as max_date

Ishan25_2-1596622978614.png

Ideally it should show as 0.

I want this measure to work only on the basis of dates present in date slicer and not in the visual.

 

Can this be dine in powerbi?

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous 

Use all(location) in measure or switch of interactions

https://docs.microsoft.com/en-us/power-bi/create-reports/service-reports-visual-interactions

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello @amitchandak 

 

I am not sure if my understanding is correct but edit interactions feature will allow me only to switch the filtering of the table on/off based on the item location slicer. I am able to switch off the slicer interaction but then i loose the ability to filter.

I still want to filter the table using the slicer but need it not to affect the measure.

 

Let me know if i am wrong and if this can be achieved in some other way.

 

Also can you please help if i should replace the ALLSELECTED with ALL(item location) in the measure?

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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