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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sr12
Helper I
Helper I

X axis in bar chart

Hello everyone,

 

I would like to have the x-axis named according to the data, and not be placed at the top of the chart. For example in the attached picture, the "Banking, Commercial, Education, etc" i want them to be placed in the x-axis under each bar. So how can i do that?

 

Thanks in advance.

 

Screenshot 2021-09-20 112937.jpg

 

1 ACCEPTED SOLUTION

Okay.

So "Banking, Commercial, Education, etc" are separate columns.

Try the below steps;

1)Go to Transform Data.

2)Right click and select the columns which you want in your X axis.

3)Go to Transform from the upper tab and select 'Unpivot columns'.

4)You will get a 'Attribute' column.

5)Go to File ->Close and Apply.

6)On your report page, pick a visual and drag 'attribute' column on the Axis field and your calculation or measure on the 'Values' field.

 

If this post helps, then mark it as 'Accept as Solution'.

 

Regards,

Sanket Bhagwat.

View solution in original post

7 REPLIES 7
SanketBhagwat
Solution Sage
Solution Sage

Hi @sr12 .

Put "Banking, Commercial, Education, etc" in 'Axis' field and not in 'Legend' field.

 

If this post helps, then mark it as 'Accept as Solution'.

 

Regards,

Sanket Bhagwat

@SanketBhagwat,

Tahnk you for your reply, but when i do that, the bar chart gets empty and all the data are gone.

Put any measure or calculation or any column in the 'Values' field.

 

Regards,

Sanket Bhagwat

@SanketBhagwat,

Okay that worked but for the x-axis only the fist data is showing; which is banking in this case. and all other categories are not shown in the chart.

can you share a screenshot of your expected output?

@SanketBhagwat ,

 

As you can see in the below screenshot, only one category is shown and the other categories are not.

Screenshot 2021-09-20 125031.jpg

Screenshot 2021-09-20 125014.jpg

Okay.

So "Banking, Commercial, Education, etc" are separate columns.

Try the below steps;

1)Go to Transform Data.

2)Right click and select the columns which you want in your X axis.

3)Go to Transform from the upper tab and select 'Unpivot columns'.

4)You will get a 'Attribute' column.

5)Go to File ->Close and Apply.

6)On your report page, pick a visual and drag 'attribute' column on the Axis field and your calculation or measure on the 'Values' field.

 

If this post helps, then mark it as 'Accept as Solution'.

 

Regards,

Sanket Bhagwat.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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