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
annlois
Frequent Visitor

Column Text Analysis via Keyword Search

I'm currently trying to make a ticket pattern analysis from 3 different columns.

What I'm trying to do:

1- Search keywords of "Login issues" / "access request" etc etc on 3 different columns

2- Fill in a new custom column for the ticket category it will fall under

Example: If a keyword for "login" is found -> Custom column will be "Login Issue/Request"

 

The only solution i found was to make a conditional column for this. But unfortunately since there are a lot of keywords, I have a lot of else-if conditions to make. This is what my DAX formula looks like:

 

annlois_0-1677054030531.png

 

Is there a more dynamic way to do it in DAX? Or I can just stick to how I'm currently doing it?

Thanks for your help in advance! 🙂

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @annlois,

You can create a new table with keywords and correspond status.(e.g. Keyword, Status) Then you can use Dax expression add the calculated column in your table to look up the custom table records with current table fields values to output the result status.

If you are confused about coding formula, please share dummy data dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @annlois,

You can create a new table with keywords and correspond status.(e.g. Keyword, Status) Then you can use Dax expression add the calculated column in your table to look up the custom table records with current table fields values to output the result status.

If you are confused about coding formula, please share dummy data dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi Xiaoxin,

Thank you!!! I was able to create a new column with these formula:

Column1= MAXX(filter(ALL(TableA), CONTAINSSTRING([TableB.Resolution], TableA[Column1])),TableA[Column2])
 
Now I need to fill in my fields with not only the comparison from TableB.Resolution, but also with other tableB columns like TableB.Description and TableB.DetailedDescription. Maybe you have a hint how I can do it? 🙂

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.