Bar chart - cluster x-axis and show bars for each cluster

thomasuponor

New Member
Joined
Sep 13, 2018
Messages
44
Office Version
  1. 2016
Platform
  1. Windows
I am trying to create a bar chart with below clusters.
Blue = 2020
Orange 2021


1613386106710.png


The data comes from Excel:
Year0-100.000100.000-500.000500.000-1.000.000>1.000.000
202037,13%40,0%33,33%33,33
202147,45%36,41%29,27%20,59

So far I have done this:

Step 1: Query Editor

Step 2: Selected all the columns except Year and click on "Unpivot Columns" under Transform tab.

Now I am lost :)
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi Thomas,

Well, that's really it :) now all you need to do is to load your Query (Close & Apply button).

1613403628741.png


Then in Power BI Desktop do the following:

1. Add blank clustered column chart

1613403520219.png


2. Move your query's fields:

1613403661424.png


3. Enjoy your chart! You can go to Format section and change the colors, apply the labels etc.
You can also click on "Value" field and format it as a percentage ("Column tools"), just to make sure it is displayed properly.

1613403720802.png

1613403762777.png


1613403769975.png
 
Upvote 0
Solution
Hi Thomas,

Well, that's really it :) now all you need to do is to load your Query (Close & Apply button).

View attachment 32122

Then in Power BI Desktop do the following:

1. Add blank clustered column chart

View attachment 32120

2. Move your query's fields:

View attachment 32123

3. Enjoy your chart! You can go to Format section and change the colors, apply the labels etc.
You can also click on "Value" field and format it as a percentage ("Column tools"), just to make sure it is displayed properly.

View attachment 32124
View attachment 32125

View attachment 32126

You saved me again :)
I was placing "year" all other places than legend.
No it's working :)
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top