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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Jays_D
Advocate II
Advocate II

Create a custom column from multiple columns with duplicate values to use as a slicer

Hi All,

 

Hoping someoine could teach me or point me in the right direction please.

I have 5 columns, 1 has a Job # and the remaining 4 represents a role and contains a name.

Example

Job#Role 1Role 2Role 3Role 4
A123-1John SmithKelly BrownDavid AndrewTim Shaw
B123-2 John Smith David Andrew
C123-3Tim Shaw Tim Shaw 

 

As you can see, the same individual may have their name in multiple 'Roles' for a single job (C123-3) or may play the part of Role 1 in one Job, then play the part of Role 2 on another job (John Smith).

 

What I want to do is, create a custom column which consists of every possible name acrosss the 4 columns. I want to use this as a slicer to filter a table.

 

The table does not need to contain the name of whom I am filtering, just show me the list of Job# associated with that name.

Admittedly I am learning the ropes in Power BI on my own, so I am no expert at this point. I have been searching but cannot find what I need to achieve this. I have tried creating a Paramater and using that as a slicer but that only allows to filter by the Role column, not the names of the individual.

Greatly appreaciate any guidance to help me solve this.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Jays_D , one what is unpivot the 4 columns and get them into rows

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

 

Another one concat 4 columns and create unpivoted dimension

Power BI- Text Part slicer to filter/search text - https://youtu.be/MKKWeOqFG4c
https://medium.com/@amitchandak/power-bi-search-text-parts-in-text-ad2f9783ffa2

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Jays_D , one what is unpivot the 4 columns and get them into rows

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

 

Another one concat 4 columns and create unpivoted dimension

Power BI- Text Part slicer to filter/search text - https://youtu.be/MKKWeOqFG4c
https://medium.com/@amitchandak/power-bi-search-text-parts-in-text-ad2f9783ffa2

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak and apologies for the late repsonse, I had taken some leave.

Unpivoting is new to me but this has solved my issue, thank you for this it's greatly appreciated!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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