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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Munawar1881
Helper II
Helper II

Copy specific word from column to other customize column

Hi,

 

hope all of you are doing well.

 

I have a question if anyone can please answer. I have a product description in one column which contain a word male or female with other details I want to create a column in and want to copy the male, female etc from description column to the new one. how can I do that.

 

please find the example below. it's in Excel but I need to it in Power BI

 

Thank you so much

 

Munawar1881_0-1665663445261.png

 

4 REPLIES 4
Munawar1881
Helper II
Helper II

Munawar1881_0-1665817674702.png

 

wdx223_Daniel
Super User
Super User

NewStep=Table.AddColumn(PreviousStepName,"Gender",each List.Skip({"BABY","LADIES","MEN'S"},(x)=>not Text.Contains([Style Name],x,Comparer.OrdinalIgnoreCase){0}? ??"OTHERS")

can you please help the query you gave me is showing error

no its not working

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors