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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register 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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.