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

Creating a Clustered Chart similar to EXCEL

Hello I am trying to recreate this chart exactly how it is in EXCEL in Power BI. In EXCEL it just gives us the choice of this style of chart. Is there a simple method of doing it in Power BI? I have not been able to do it so far. 

 

walker8888_0-1656433053445.png

 

1 ACCEPTED SOLUTION
williamadams12
Resolver I
Resolver I

Hi Walker - Your data table needs to be reformatted. To render the visualization you want in Power BI, start to think about the structure of your data models and tables: e.g., row values which can be referenced on axes, etc. 

 

As such, if you're loading the dataset into PowerQuery in the exact same format as the table above, it needs to be unpivoted to render the view you want.

 

So, try right-clicking on the "Priority" column in the PowerQuery Editor and select "Unpivot Other Columns" so that the two FTE column headers are transformed as values in rows. Once the FTE designations are listed in the data table as values in the "Attribute" column, they can be dropped into the Y-Axis on the Clustered Bar Chart, with the figures in Value being on the X-Axis and the data being broken out by the Priority types in the Legend. 

 

williamadams12_0-1656434188736.png

 

williamadams12_1-1656434222033.png

 

 

 

View solution in original post

9 REPLIES 9
selimovd
Super User
Super User

Hey @walker8888 ,

 

you can do that with the clustered bar chart:

selimovd_1-1656434746449.png

 

Here a quick trial with similar data than yours:

selimovd_0-1656434697672.png

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

Or this 

walker8888_0-1656435395607.png

 

@walker8888 - You can't render the view you want without unpivoting the FTE columns in your dataset in PowerQuery. Do this first and reference the unpivoited Attribute of FTE types in the Y-Axis. 

Ok, I will give that a try

 

@selimovd - Just telling him to use a clustered bar chart with some screengrabs isn't an actual solution, and more importantly, it teaches him nothing he can subsequently apply to other data transformation or visualization challenges he may encounter. 

 

The data in its current formatted table cannot be rendered in the desired visualization without unpivoting the FTE columns in Power Query first. 

How did you do that. When I try that it does not split the External FTE and Internal FTE. It gives me something like this 

walker8888_1-1656435284161.png

 

 

williamadams12
Resolver I
Resolver I

Hi Walker - Your data table needs to be reformatted. To render the visualization you want in Power BI, start to think about the structure of your data models and tables: e.g., row values which can be referenced on axes, etc. 

 

As such, if you're loading the dataset into PowerQuery in the exact same format as the table above, it needs to be unpivoted to render the view you want.

 

So, try right-clicking on the "Priority" column in the PowerQuery Editor and select "Unpivot Other Columns" so that the two FTE column headers are transformed as values in rows. Once the FTE designations are listed in the data table as values in the "Attribute" column, they can be dropped into the Y-Axis on the Clustered Bar Chart, with the figures in Value being on the X-Axis and the data being broken out by the Priority types in the Legend. 

 

williamadams12_0-1656434188736.png

 

williamadams12_1-1656434222033.png

 

 

 

@williamadams12 you are awesome it worked

Thanks, @walker8888 - If you could, please mark this post as a solution for others to reference. 

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.