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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
RustyVDN
Frequent Visitor

Create a bar chart from Multiple Columns

Hi, I have some columns like this:

 

ApplicationMelbourne?Sydney?Brisbane?New York?
PacmanYes YesYes
PinballYesYes  
Space InvadersYes Yes 
Street Fighter Yes Yes

 

I would like to create a bar chart/pie chart that shows Application by location. I'm still pretty new to Power BI, but I can't figure out how to do this. Alternatively, I can get the data like this:

 

ApplicationLocations
PamanMelbourne; New York
PinballMelbourne; Sydney
Space InvadersMelbourne; Brisbane
Street FighterSydney; New York

 

But I don't know how to create the visualisations from this source either (which would actually be preferrable. Thanks so much for your help!

 

edit: Not sure who "accepted" this as a solution, but it is NOT solved.

 

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@RustyVDN 

 

The easiest way is to unpivot the city columns in Power Query. Select the query, select the "city" columns" and choose "unpivot columns" in the ribbon:

Unpivot.jpg

 

This will ransform the table to this structure, where you now have th cities as a column which you can use in the visuals as a field.

Final Table.JPG

 

You can now create you visuals. For example:

result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

5 REPLIES 5
v-cazheng-msft
Community Support
Community Support

Hi, @RustyVDN 

Is your problem solved? If there some posts help, then you can consider marking them as solutions. If not, please provide more details about your issue.

 

Best Regards

Caiyun Zheng

PaulDBrown
Community Champion
Community Champion

@RustyVDN 

If the suggestion solves your issue, could you kindly mark it as a solution? This helps others looking for similar solutions. If you need further help, let us know!





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






PaulDBrown
Community Champion
Community Champion

@RustyVDN 

 

The easiest way is to unpivot the city columns in Power Query. Select the query, select the "city" columns" and choose "unpivot columns" in the ribbon:

Unpivot.jpg

 

This will ransform the table to this structure, where you now have th cities as a column which you can use in the visuals as a field.

Final Table.JPG

 

You can now create you visuals. For example:

result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi Paul,

 

Thanks for this. Is there any way to do this with the second table? I use a lot of fields that contain multiple values from "label-type inputs".

Hi,

In the query editor, rIght click on the heading of the second table and click on Split by delimiter.  Select the delimiter as ; and under Advanced options, select split by rows.  Click on Close and Apply.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors