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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.