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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.