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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Single Slicer?

I have this data:

1.PNG

So as you can see, a company can have a Cobra manager, a Flex manager, or both. For the most part it tends to be the same person, but there are some exceptions. Is there any way to set this up so rather than picking a persons name as a COBRA AM or a Flex AM, there's just one slicer that returns any record with their name associated regardless of what type of manager they are for a particular record? So for instance rather than selecting Kayla Lockhart from the COBRA AM slicer and only seeing records where she is a COBRA AM, I can see records where she's either a COBRA AM or a Flex AM. I do not wish to combine COBRA and Flex into one column because I still need to see it split out. Thanks! 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

You could use an unrelated person table and a measure like this:

 

Measure = 
VAR myPerson = IF(HASONEVALUE(People[People]),SELECTEDVALUE(People[People]),BLANK())
RETURN IF(myPerson IN ALLSELECTED(COBRA[COBRA AM]) || myPerson IN ALLSELECTED(COBRA[Flex AM]),1,0)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

You could use an unrelated person table and a measure like this:

 

Measure = 
VAR myPerson = IF(HASONEVALUE(People[People]),SELECTEDVALUE(People[People]),BLANK())
RETURN IF(myPerson IN ALLSELECTED(COBRA[COBRA AM]) || myPerson IN ALLSELECTED(COBRA[Flex AM]),1,0)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler I meant to ask, what is meant by an unrelated person table? Is that just joining both columns into a single table of it's own then creating the measure from that table and relating it back to my original table?

I just meant don't create a relationship between your Person table and your other table. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.