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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
mkazi
Regular Visitor

Dax or Measure to find specific word from Cel

Dear All,

need help to find specific word from the cell / row wise and display output in anthere collumn

 

e.d

Customer is very upset and angry, need Shipment delivery ASAP

 

Need to look for upser,Angry and ASAP and put the same in another collumn to plot word cloud graph

 

Appericiate your support and looking or solution on the same

 

Many Thanks

Sameer

 

2 ACCEPTED SOLUTIONS

Hi @mkazi ,

 

If you prefer to do this in the Power Query editor then I would do it like this to have a non case-sensitive result:

 

if Text.Contains([#"Details of the Complaints / Suggestions n Feedback"],"ASAP",Comparer.OrdinalIgnoreCase) then "ASAP"
else if Text.Contains([#"Details of the Complaints / Suggestions n Feedback"],"angry",Comparer.OrdinalIgnoreCase) then "Angry"
else if Text.Contains([#"Details of the Complaints / Suggestions n Feedback"],"Complaint",Comparer.OrdinalIgnoreCase) then "Complaint"
else "No"

 

Payeras_BI_0-1610878722790.png

 

Regards,

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

Hi @mkazi ,

 

I am glad it helped, if I answered your question please mark my post as the solution.

Regards,

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

5 REPLIES 5
Payeras_BI
Solution Sage
Solution Sage

Hi @mkazi ,

Try with this function: CONTAINSSTRING

https://dax.guide/containsstring/

Regards,

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Hi Payres, trying to use the below if text.contains to get the below words from the table and each cell

 

anything to modify below

 

if Text.Contains([#"Details of the Complaints / Suggestions n Feedback"],"ASAP") then "ASAP" ,

if Text.Contains([#"Details of the Complaints / Suggestions n Feedback"],"angry") then "Angry"

if Text.Contains([#"Details of the Complaints / Suggestions n Feedback"],"Complaint") then "Complaint"

else "No")

 

 

Hi @mkazi ,

 

If you prefer to do this in the Power Query editor then I would do it like this to have a non case-sensitive result:

 

if Text.Contains([#"Details of the Complaints / Suggestions n Feedback"],"ASAP",Comparer.OrdinalIgnoreCase) then "ASAP"
else if Text.Contains([#"Details of the Complaints / Suggestions n Feedback"],"angry",Comparer.OrdinalIgnoreCase) then "Angry"
else if Text.Contains([#"Details of the Complaints / Suggestions n Feedback"],"Complaint",Comparer.OrdinalIgnoreCase) then "Complaint"
else "No"

 

Payeras_BI_0-1610878722790.png

 

Regards,

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Thanks , i will use it as i jsut have to filter only Customer sentiment words , like ANGRY ETC...

 

it wil be max of 12 to 13 words

 

 

Hi @mkazi ,

 

I am glad it helped, if I answered your question please mark my post as the solution.

Regards,

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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