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
joeywong
Helper I
Helper I

Extract and categorize the column

Hi members,

 

I need help on this.

 

I have a table with a remarks column. The remarks column is unstructured with spacing, text, numbers, and symbols. This column contains many words, but it also includes keywords such as "A," "B," and "C." 

 

I want to create an additional column and categorize the remarks column.

 

I have tried adding columns with “columns from an example”, but it does not work out.

May I know how to go about it? Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @joeywong ,

How about use the conditional column? like this:

vcgaomsft_0-1669871249177.png

vcgaomsft_1-1669871302284.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

6 REPLIES 6
joeywong
Helper I
Helper I

Hi Vijay

 

Thanks in advance for your help.

Please find below an example for the Remarks and Categorize columns.

joeywong_0-1668936698306.png

A new column, "Categorize," was added based on the Remarks column. Thanks!

 

 

Use this formula in a custom column where you will need to populate {"AA","BB","CC","DD"} appropriately.

= Text.Combine(List.Intersect({Text.Split([Remarks]," "),{"AA","BB","CC","DD"}}),", ")

 

Hi Vijay,

 

Thank you for your attempt to help. However, this solution does not work. There are some null rows in between. 

 

Do you have any other solutions? Thanks!

Anonymous
Not applicable

Hi @joeywong ,

How about use the conditional column? like this:

vcgaomsft_0-1669871249177.png

vcgaomsft_1-1669871302284.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Use a try otherwise block

= try Text.Combine(List.Intersect({Text.Split([Remarks]," "),{"AA","BB","CC","DD"}}),", ") otherwise null
Vijay_A_Verma
Super User
Super User

Can you give us an example of your Remarks column and how to categorize them? It will be easier for us to give the solution...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors