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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Display (text) table filtered by 2 criteria, each from different tables

I have some data that I want to categorise by assigning a number between 1-5 to each row. (Leaving blank is also valid)

 

It's possible that some rows will belong in more than one catergory, so I have 2 category columns A and B.

 example table.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


What I want, is a way to filter the data by category (1-5) by considering both columns. 

 

e.g. I slice by catgeory 5 and see Row 1 and Row 5 returned.

 

I'm having no luck figuring out the best way to do this, so any help would be appreciated.

 

Thank you!

1 ACCEPTED SOLUTION
alexei7
Continued Contributor
Continued Contributor

Hi @Anonymous,

 

Presuming you source data look like your screenshot below, I would "unpivot" the data:

 

- Go to Power BI query editor

- Go to the "Transform" menu

- Select the Category A and Category B columns

- Click "Unpivot Columns"

 

This should give you something like the below, which will enable you to filter on "Value" and see the rows which have either Category A or Category B with the value you filter on.

 

unpivot.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 


Hope that helps

Alex

View solution in original post

2 REPLIES 2
alexei7
Continued Contributor
Continued Contributor

Hi @Anonymous,

 

Presuming you source data look like your screenshot below, I would "unpivot" the data:

 

- Go to Power BI query editor

- Go to the "Transform" menu

- Select the Category A and Category B columns

- Click "Unpivot Columns"

 

This should give you something like the below, which will enable you to filter on "Value" and see the rows which have either Category A or Category B with the value you filter on.

 

unpivot.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 


Hope that helps

Alex

Anonymous
Not applicable

@alexei7 That's perfect and much simpler than any of my ideas. Thanks.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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