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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ffirda99
Frequent Visitor

Visualization of a multiple choices list in a bar chart

Hi everyone,

 

I have sharepoint list column like this,

ffirda99_0-1686276129799.png

The column type is multiple-choice. I want to visualization that value (crack, oversize, spatter, undersize, underfill) in bar chart. But when I drag the data to X axis, the value doesn't appear. So it like this:

ffirda99_1-1686276260496.png

 

How to solve this problem? Thank you in advance.

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi again @ffirda99 🙂
You have to make some manipulation on power query to convert it to "practical table" to work with:

Link to file with a solution: Link 

1. Filter out blank rows:

Ritaf1983_0-1686279089021.png

2. Promote heathers (if it didn't happen automatically on import)

Ritaf1983_1-1686279202695.png

3. Split your column by delimiter (",")

Ritaf1983_0-1686279346362.pngRitaf1983_1-1686279376933.png

4. Transpose the result:

Ritaf1983_2-1686279442447.png

5.Unpivot columns

Ritaf1983_3-1686279506183.png

6. Rename column of your values:

Ritaf1983_4-1686279557048.png

7. Remove column "Attribute"

Ritaf1983_5-1686279629708.png

8. Count defects within the group by 

Ritaf1983_7-1686279749897.png

9. Close and apply 

10. Put it on any visualization you need:

Ritaf1983_8-1686279862627.png

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi again @ffirda99 🙂
You have to make some manipulation on power query to convert it to "practical table" to work with:

Link to file with a solution: Link 

1. Filter out blank rows:

Ritaf1983_0-1686279089021.png

2. Promote heathers (if it didn't happen automatically on import)

Ritaf1983_1-1686279202695.png

3. Split your column by delimiter (",")

Ritaf1983_0-1686279346362.pngRitaf1983_1-1686279376933.png

4. Transpose the result:

Ritaf1983_2-1686279442447.png

5.Unpivot columns

Ritaf1983_3-1686279506183.png

6. Rename column of your values:

Ritaf1983_4-1686279557048.png

7. Remove column "Attribute"

Ritaf1983_5-1686279629708.png

8. Count defects within the group by 

Ritaf1983_7-1686279749897.png

9. Close and apply 

10. Put it on any visualization you need:

Ritaf1983_8-1686279862627.png

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 

 

Thankyou!! it can work, have a nice day!

Happy to help 🙂
🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @ffirda99 
Sorry, I couldn't figure out how the data was imported into Power BI's dataset.

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 

 

This is my table, column type from this table is multiple choice (SharePoint list)

Type of Defect
 
Crack, Oversize
 
Spatter
 
 

Undersize, Underfill

 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.