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.
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?
Solved! Go to Solution.
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.
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.
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.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |