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

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.