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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
RomainGeniteau
Regular Visitor

Search Multiple Value in different columns

Hello, 

I'll start by saying that I'm French so my English can be a little messy. 

I have a table which contains one identifier column and 4 columns filled with different words like below:

IdWord1Word2Word3Word4
1GreenWoodnullnull
2SeaGreenTreenull
3ForestTreeGreennull
4Rednullnullnull
5WoodOrangeRednull
6BlueGreenOrangePink
7Pink RoadHouseTree
8WoodTreeForestnull

 

I want to filter this table dynamically. 
A first slicer that contains all unique words appearing in all columns
- Green, Wood, Sea, Tree, Forest, Red, Orange, Blue, Pink, Road, House
If i choose Green, it updates and displays the following table:

IdWord1Word2Word3Word4
1GreenWoodnullnull
2SeaGreenTreenull
3ForestTreeGreennull
6BlueGreenOrangePink

 

After that i want to filter it again and again up to 4 times, to only keep the rows containing all the words i want.
One of the biggest problem is that the first word to select isn't only in the first columns.
The other problem is that i want a solution easy to use for users.

I've tried so many things but couldn't get a satisfactory result.
Any help is much appreciated. And Thank you in advance for your help.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RomainGeniteau 

 

For your question, here is the method I provided:

 

You need a virtual table and go into the power query to do unpivot.

 

"Table"

vnuocmsft_0-1719883316334.png

 

" virtual table"

vnuocmsft_1-1719883321533.png

 

Click "Transform data" to enter the power query.

 

vnuocmsft_3-1719883441042.png

 

Unpivot columns.

 

vnuocmsft_4-1719883521875.png

 

Create a relationship.

 

vnuocmsft_5-1719883609258.png

 

vnuocmsft_6-1719883670208.png

 

Here is the result.

 

vnuocmsft_7-1719883725727.png

 

Regards,

Nono Chen

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
RomainGeniteau
Regular Visitor

Thank you for your solution. It works perfectly

Anonymous
Not applicable

Hi @RomainGeniteau 

 

For your question, here is the method I provided:

 

You need a virtual table and go into the power query to do unpivot.

 

"Table"

vnuocmsft_0-1719883316334.png

 

" virtual table"

vnuocmsft_1-1719883321533.png

 

Click "Transform data" to enter the power query.

 

vnuocmsft_3-1719883441042.png

 

Unpivot columns.

 

vnuocmsft_4-1719883521875.png

 

Create a relationship.

 

vnuocmsft_5-1719883609258.png

 

vnuocmsft_6-1719883670208.png

 

Here is the result.

 

vnuocmsft_7-1719883725727.png

 

Regards,

Nono Chen

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

 

 

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors
Top Kudoed Authors