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
ayushmittal22
Frequent Visitor

Advanced Contain Function

Hi, 
I have E-commerce sales data with product name and price. 
I want to categorise the sales into different categories. 

I also have a separate list where categorization is given. For Ex- 1. Hair Comb- Hair care products 2. Lipstick- Lip Care Products

I want Power BI to read the Product Name and see if that product name contains any of these words. And then put its category beside it in a different column. 

I have a table with product names- such as - LOREAL HAIR COMB- BLUE COLOR

I want Power BI to check if Hair Comb is there in any product name and then put its category beside it. 

Have tried LOOKUP Value but doesn't seem to work in this case.

Please help:
@amitchandak @FreemanZ  @Mahesh0016 @bolfri 

2 REPLIES 2
ayushmittal22
Frequent Visitor

Mahesh0016
Super User
Super User

@ayushmittal22 
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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.