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
bklyn3
Advocate II
Advocate II

Once slicer for multiple boolean columns

Hello 

 

I have a table with 4 columns of type Boolean 

For example : 

 

EventIDAction_AAction_BAction_CAction_D
145TrueFalseFalseFalse
178FalseTrueFalseTrue

 

Is there a way to create one slicer that would show 

Action_A

Action_B

Action_C

Action_D 

 

So that the use can filter out the data by selecting Action A, Action_B, Action_C or Action_D and the result would be a table where a line with any of the action select would show if any of the action is True (i.e. as long as a selected Action is True, the line shows) 

 

 

For instance if user select Action_ A and Action_C in the example above  The event 145 would show because Action_A is True (even if Action_C is False).  

If the user select Action_A and Action_B both event would show etc..

 

Thanks for your help

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@bklyn3 , One way is to unpivot the 4 columns in power query

 

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Another is to have one table with true-false values, join it with all 4 columns, and then create measures using userelationship

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

 

You can create a measure slicer using field parameters

 

https://medium.com/@amitchandak/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9a...

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@bklyn3 , One way is to unpivot the 4 columns in power query

 

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Another is to have one table with true-false values, join it with all 4 columns, and then create measures using userelationship

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

 

You can create a measure slicer using field parameters

 

https://medium.com/@amitchandak/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9a...

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.