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

Column not grouping correctly

So, I have a data source from a survey that has numerous answers for one field, separated by semi-colons, like this:

KathyO_0-1702253615452.png

I have managed to split and sort the answers like this (below), but you can see when I sort it, it's not quite grouping the responses together correctly:

KathyO_1-1702253707214.png

So, when I graph it, it looks like this, with multiple entries for some responses (e.g. Monthly plant/offsite audits appears twice with 3 responses for one instance, and 2 responses for the other instance, instead of 5 in total):

KathyO_2-1702253822134.png

I think maybe it's something to do with the way I have split the table with the semicolon, with some potentially having a 'space' beforehand and others not? Help please!

 

 

2 REPLIES 2
KathyO
Frequent Visitor

Thanks for your help... but I tried just using the "Trim Text" option in Power Query to remove the space from the start of the text after splitting, which worked a treat.  Simple solution... just took me a while to find it!

amitchandak
Super User
Super User

@KathyO , Based on what I got, Create sub category index in the power query use a measure on top of that on the tooltip, and sort based on that to create max (Table[Sub index])

 

Power BI and Power Query- Sub Category Rank and Index: https://youtu.be/tMBviW4-s4A

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.