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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
stefantaust
Helper I
Helper I

filter across multiple columns

Hello, how can I filter the data and display all that contain an "X" and write the data in a new Table

Regards Stefan

 

stefantaust_0-1750149177822.png

 

1 ACCEPTED SOLUTION
speedramps
Super User
Super User

There are various methods.

 

Try this methods ...

 

In Power Query select the Check ID , Status and Bereich column

Then Transform > Unpivot > Unpivot Other columns

Then filter the rows that have "X"

 

Learn how here 
https://learn.microsoft.com/en-us/power-query/unpivot-column

 

View solution in original post

3 REPLIES 3
v-agajavelly
Community Support
Community Support

Hi @stefantaust 

The solutions provided by   above are both valid and should help you achieve the result:

  • The Power Query method using Unpivot Other Columns and then filtering for "X" is great if you want to handle this at the data transformation stage.
  • The DAX measure approach works well if you prefer to control the logic in your report visuals using a measure-based filter.

I’d suggest giving these methods a try. If you still face any issues or need help adjusting them to your exact setup, feel free to post back and we’ll be happy to support further.

Best regards,
Akhil

speedramps
Super User
Super User

You could use a measure

Row has X = 
// create a temp table of rows that have X is any of the 3 columns 
var temptable = 
FILTER('Table', 'Table'[Col1] = "X" || 'Table'[Col2] = "X" || 'Table'[Col3] = "X") 

RETURN 
// then return TRUE if the corresponding row has an item 
NOT(ISEMPTY(myset)) 

//Then on your viual filter rows that are TRUE

 

speedramps
Super User
Super User

There are various methods.

 

Try this methods ...

 

In Power Query select the Check ID , Status and Bereich column

Then Transform > Unpivot > Unpivot Other columns

Then filter the rows that have "X"

 

Learn how here 
https://learn.microsoft.com/en-us/power-query/unpivot-column

 

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.

Top Solution Authors