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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
itsranga
Regular Visitor

slicer with OR condition

I've added 3 slicers in power bi. It's working as AND condition, but I want OR condition, how do I fix this?

 

Three slicers

1. Team

2. Business

3. Function

 

Then i have added some visuals,    if i select Slicer  OR condition based i want to show the values in the visual how to achieve this?

1 ACCEPTED SOLUTION
itsranga
Regular Visitor

Im using this Measure

Filter = 
Var _fir = IF(ISFILTERED(Table[Team]), 1, 0)
Var _sec = IF(ISFILTERED(Table[Functional]), 1, 0)
Var _Third = IF(ISFILTERED(Table[Business]), 1, 0)
var _Fourth = IF(_fir = 1 || _sec = 1 || _Third=1 , 1,0)
return
_Fourth

 

visual-level filter Set the filter to include values where the measure equals 1

above measure its working

View solution in original post

2 REPLIES 2
itsranga
Regular Visitor

Im using this Measure

Filter = 
Var _fir = IF(ISFILTERED(Table[Team]), 1, 0)
Var _sec = IF(ISFILTERED(Table[Functional]), 1, 0)
Var _Third = IF(ISFILTERED(Table[Business]), 1, 0)
var _Fourth = IF(_fir = 1 || _sec = 1 || _Third=1 , 1,0)
return
_Fourth

 

visual-level filter Set the filter to include values where the measure equals 1

above measure its working

johnt75
Super User
Super User

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.