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