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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
SomeArmyVet
New Member

Help turning 8 yes/no columns into a single slicer

Hi Pbi Community, 

 

I have a SP List with 8 different trainings that employees can be certified in. These columns are yes/no choice. 

 

Training 1Training 2Training 3Training 4Training 5Training 6Training 7Training 8
YesYesYesYesYesYesYesYes
NoNoNoNoNoNoNo No

 

Is there a way to make a combined horizontal slicer with each training listed? Example below...

 

Training 1Training 2Training 3Training 4Training 5Training 6Training 7Training 8

 

The filter would only need to show the employees with "Yes" when the training name is selected, but also show the employees when more than one training is selected. ie Show who has training 1 and training 5 combined or 1,2,3 or any combo that can be thought of.

 

Thank you for your time! 

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @SomeArmyVet ,

 

As @amitchandak mentioned, please firstly use "Unpivot" to transform the table:

Eyelyn9_0-1654590992759.png

Create a flag measure——if all value are Yes, then 1 else 0.

Flag filter = 
var _t= SUMMARIZE(FILTER(ALLSELECTED('Table'),[Employee]=MAX('Table'[Employee])),[Value])
return IF( "No" in _t,0,1)

Then apply it to filter pane, set as "=1" , below is the output:

Eyelyn9_2-1654591280048.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @SomeArmyVet ,

 

As @amitchandak mentioned, please firstly use "Unpivot" to transform the table:

Eyelyn9_0-1654590992759.png

Create a flag measure——if all value are Yes, then 1 else 0.

Flag filter = 
var _t= SUMMARIZE(FILTER(ALLSELECTED('Table'),[Employee]=MAX('Table'[Employee])),[Value])
return IF( "No" in _t,0,1)

Then apply it to filter pane, set as "=1" , below is the output:

Eyelyn9_2-1654591280048.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@SomeArmyVet , if possible unpivot the columns in the power query

 

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

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.