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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Performing a Search across several columns

Hi all,

 

I have the below table and I'm trying to develop a filter that will search across each country column.

 

I have managed to get it to work for a single column - the filter will show me rows with/without "Sales" in it - however I need to expand this so that it will search across all of the columns. Any tips on how to do this? Help would be much appreciated!

 

Y_contains = IF(
    ISERROR(
        SEARCH("Sales", 'Capabilities v Country PSL'[Austria])
    ),
    "Not Sales",
    "Sales"
)

 

custerdome_0-1677768842910.png

 

1 REPLY 1
FreemanZ
Super User
Super User

hi @Anonymous 

 

could you also post your expected result?

 

the logic is similar to this post. the point is to unpivot the data first. 

https://community.powerbi.com/t5/DAX-Commands-and-Tips/List-highest-score-for-each-provider-from-a-range-of-tables/m-p/3106897#M109551

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.