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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to Apply Slicer to Multiple Fields in Table

Hello,

 

I'm trying to build a report with a slicer that will filter values based on multiple fields in a table. I have a base table with store information including Employee information in columns Manager, Shift 1, and Shift 2. I have a seperate table (Employee Table), which contains a list of all employees. I would like to be able to use a slicer using Employee Name from the Employee Table so that a text table will filter store records based on whether the selected Employee Name is either in the Manager, Shift 1, and Shift 2 fields.

 

So for the example below: I would like to filter to show all store records where Dana is either in the Manager, Shift 1, or Shift 2 field. This means the table would only show the highlighted stores (K, D, J, C, B, I).

 

Report ViewReport View

I'm having difficulty understanding how best to integrate this functionality into the data structure & report. There are multiple other tables that need to be joined to the base table as well (see below).

Model ViewModel View

 

Any assistance with finding a solution for this is greatly appreciated. Sample data can be found below.

 

Thank you,

Paul

 

Base Table

StoreManagerShift 1Shift 2
AKatlynRobEvelyn
BRobEvelynDana
CEvelynDanaMichael
DDanaMichaelNick
EMichaelNickTom
FNickTomKatlyn
GTomKatlynRob
HKatlynRobEvelyn
IRobEvelynDana
JEvelynDanaKatlyn
KDanaKatlynRob

 

Employee Table

Employee Name
Katlyn
Rob
Evelyn
Dana
Michael
Nick
Tom
Katlyn
Rob
Evelyn
Dana

 

Store Location Table

 

StoreState
ATexas
BNew York
CCalifornia
DNew York
ECalifornia
FTexas
GNew York
HCalifornia
INew York
JCalifornia
KCalifornia

 

Store City Table

 

StoreCity
AAustin
BNew York
CLos Angeles
DNew York
ELos Angeles
FAustin
GNew York
HLos Angeles
INew York
JLos Angeles
KLos Angeles

 

Store Hours Table

 

StoreStart TimeEnd Time
A9:0022:00
B8:0021:00
C7:0020:00
D9:0022:00
E8:0021:00
F7:0020:00
G9:0022:00
H8:0021:00
I7:0020:00
J9:0022:00
K8:0021:00
2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , one of the way is to create measure like

 

countrows(filter('Base Table', 'Base Table'[manager] in values(employee[employee name])  || 'Base Table'[Shift1] in values(employee[employee name]) || 'Base Table'[Shift2] in values(employee[employee name])  ))

 

another one is to create active inactive link and use userelationship


https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

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

Thank you for the sample explanations. Can you elaborate on how the active inactive link would work in a slicer? I'm struggling to understand how it would work to filter records as opposed to using it to calculate a sum like the example on the website. Thank you

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors