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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lfk32
Regular Visitor

Automatically group using keywords

Not sure this is even possible but here goes.  I have a very large column with various text.  I want to use certian keywords to group things together.  For exmaple there may be the following:

 

cisco 1

cisco 2

cisco 3

cisco 4

 

I can create a group manually and group these together in a group called "Cisco".  However this table is regulalry updated and when new data is imported there might be new entires like cisco 5 and cisco 6 when the table updates.  I want to group these together automatically using the keyword Cisco grouping anything with Cisco in it into the Cisco group.

 

I have many keywords that i want to create groups with.  Any idea how i can do this?

5 REPLIES 5
barritown
Solution Sage
Solution Sage

Hi @lfk32

 

If you have a fixed set of groups, you can solve your problem with a calculated column and SWITCH ( TRUE(), ... ) in it:

barritown_0-1682582653384.png

 

If your set of groups is expected to be updated frequently then you might need to keep it in a separate table, solution will be more complicated then.

 

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

Anonymous
Not applicable

This is working very well but ran into a issue.  Minor and could probably work around it but maybe there is a fix.

 

One of the keywords in my big list is "git".  I found that its also matching on "digital" since "git" is also foundin "Digital".  Is there a way to specify the value must be an exact match?

Can you try putting the line with "digital" in SWITCH above the line with "git"?

 

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

Anonymous
Not applicable

Yep worked fine.
Anonymous
Not applicable

Perfect. Exactly what i was looking for and works exactly how I need.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.