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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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

Anonymous
Not applicable

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

@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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors