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
ld17
Helper II
Helper II

Visualizing multiple values from Excel

I have an Excel log that displays incidents. We have a column for "body part" injured, and sometimes there are multiple values inputted, such as arm/finger, knee/leg, etc. I would like to put these values into a pie chart or another visual and break them up into individual categories so that Power Bi recognizes arm as one value, finger as one value, etc. Since the log is updated on an ungoing basis, I would also like to set up some type of rule in Power Bi so that when new data is inputted, it recognizes these as distinct values. How can I achieve this?

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @ld17 

 

To break up multiple values into individual values, you can use the Split columns by delimiter feature in Power Query Editor. By default, it splits the chosen column into multiple columns. You can expand Advanced options section and select Rows instead. In this way it will expand the rows that have multiple values into multiple rows with all category values in the same column. 

vjingzhang_0-1656907915752.png

 

I'm not sure if you want to make a category table with distinct values? If so, you can duplicate the query and remove all other columns except the category column. Then use Remove Rows > Remove Duplicates to keep only distinct category values in the query. Apply the queries into Power BI. Then create a relationship between the category table and the Incidents table on category column. If you want to use a pie chart, put category column on Legend. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @ld17 

 

To break up multiple values into individual values, you can use the Split columns by delimiter feature in Power Query Editor. By default, it splits the chosen column into multiple columns. You can expand Advanced options section and select Rows instead. In this way it will expand the rows that have multiple values into multiple rows with all category values in the same column. 

vjingzhang_0-1656907915752.png

 

I'm not sure if you want to make a category table with distinct values? If so, you can duplicate the query and remove all other columns except the category column. Then use Remove Rows > Remove Duplicates to keep only distinct category values in the query. Apply the queries into Power BI. Then create a relationship between the category table and the Incidents table on category column. If you want to use a pie chart, put category column on Legend. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find 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.