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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
gmjd1
New Member

Slicer selection then filter columns on value

I am trying to create a power BI visul to help me identify which training modules a specific job role will need to complete.

 

The original data in Excel contains a job title column, and then various columns with module titles and Y & N's in each column under these modules next to the relevant job titles.

 

I have a table that contains various module titles, and either a Y or N to mark this module as relevant yes or no.  I then have a slicer that allows me to choose a job title, and in turn displays the Y & N's for the selected job role. 

 

What I am hoping to do however, is when a job role is selected in the slicer, the table can be set to only display the columns that contain a Y, so I have a list of relevant modules for this selected job role. Is this possible please I cannot find how to do this?

 

I did also attempt to replace the N values to blanks but still been unable to stop it showing these blank columns. Any suggestions are appreciated.

3 REPLIES 3
gmjd1
New Member

Thanks for the replies. I have not been able to get it to work still unfrotunatley, but this may be my lack of Power Bi skills meaning I am doing something wrong.

 

Here is a sample of the data:

gmjd1_0-1693919877405.png

 

And then my visual is a table, using a slicer to select the job role seen in column 1, and hoping to make this only display the columns containing a Y then in the table and the N's excluded. Any help is appreciated.

Anonymous
Not applicable

Hi @gmjd1 ,

 

I suggest you to try to create a measure to filter your visual.

Filter =
IF ( MAX ( [Y or N] ) = "Y", 1, 0 )

 

Add this measure into visual level filter and set it to show items when value = 1.

 

If this reply still couldn't help you solve your issue, please share a sample file with me.

 

Best Regards,

Rico Zhou

 

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

@gmjd1 ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Check if these features and use of selected value of field parameters can help

 

Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE
Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725f
Field Parameters- Conditional Formatting
: https://amitchandak.medium.com/field-parameters-conditional-formatting-517aacc23fdf

 

 

How to create a dynamic Axis using a slicer? https://youtu.be/RblNR5yeF8Y

 

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.