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

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.

Reply
Anonymous
Not applicable

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

Hi,
I am looking for a way to cluster x-axis like below and add to bars to each. Below is the table with the data imported to BI from Excel.

 

Capture.PNG

 

 

 

Year

0-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

 

Thanks

Thomas

1 ACCEPTED SOLUTION
Tahreem24
Super User
Super User

@Anonymous ,

DO the following steps:

Step 1: Go to Transform Query Editor

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

Step 3: Save and close the Query Editor.

Step 4: Take the Cluster column chart from visualzation pane and enter needed values on axis and value property.

Attaching screen shot for your reference:

step 2.PNG

step 4.PNG

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

6 REPLIES 6
Tahreem24
Super User
Super User

@Anonymous ,

DO the following steps:

Step 1: Go to Transform Query Editor

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

Step 3: Save and close the Query Editor.

Step 4: Take the Cluster column chart from visualzation pane and enter needed values on axis and value property.

Attaching screen shot for your reference:

step 2.PNG

step 4.PNG

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

@Tahreem24 
Great job! thx.
One thing I can't get to work is the year. Somehow mine is counting. Any trick for that?
Best
Thomas

Capture.PNG

@Anonymous  Good to know that my solution is working for you. 

Just try to use SUM instaed of Count like below:

Capture.PNG

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

Hi @Tahreem24 ,
Thanks for your effort.
I noticed this method is summing "year", which makes the bar chart look wrong.

The sum is 4041 (2020+2021) for below chart. Instead it should return two bars with each value from below table.

Hope it makes sense 🙂



Capture1.PNG

Untitled.png

HI @Anonymous,

Have you tried to move your year field to the legend fields of your chart? It should display and summary the value of your records based on attribute and year groups.
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

@Anonymous ,

Make the year column to Text data type.

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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