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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Need help with simple Column Chart graphic

Hello, first of all this is my first time using Power BI so sorry if this question was already answered. I am using the program because of how good the graphics looks and it's helping me a lot with my current thesis! By that context, I am only using it for simple columns charts like this one I made earlier today while learning and playing with the program:
Hence how the columns in the 'Model' category are separated by the legend without the legend being in the X axis.Hence how the columns in the 'Model' category are separated by the legend without the legend being in the X axis.

Which was great when I did it, but after making some editing to the data, I lost the chart and had to do it again. But now, after I made the same steps, the chart looks like this:

image_2024-01-04_125428026.png

The major problem is that the columns are now closer to each other, and the X axis parameters don't look centered as the first image. I've been tweaking around a lot and haven't been able to reproduce the first chart. I need the chart to look like the first one because now I know how to edit correctly the data and the visuals I need, except for that. The visual build used is clustered column chart by both charts.

 

Thanks for the help and I really appreciate it!

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , What I usually do is, Instead of using legend I use both columns on the Axis, Sort on the Axis, and Concatenate label off. And then I go ahead and do conditional formatting to get different color for bars using field value option and measure

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pane-66e0afcb15f3

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Anonymous
Not applicable

Hi @Anonymous ,

 

Based on the information you provided, I found through testing that the change in your chart was due to a different order of Auto Mesh in the two charts.

 

In the first chart your order is No, Patron, Si; whereas in chart 2 the order is Patron, No, Si. Since all the Patrons in chart 1 are zero except for Caso1, which is right in the middle of the three columns, it achieves exactly the result you are looking for.

 

My pbix reproduces your problem and you can achieve your goal by adjusting the Auto Mesh order.

 

1.Add a column and change type to whole number.

 

Column = 
IF ( 'Table'[Auto Mesh] = "A", "2", IF ( 'Table'[Auto Mesh] = "B", "1", "3" ) )

 

vyifanwmsft_1-1704443832920.png

 

Fianl output:

vyifanwmsft_2-1704443884027.png

 

 

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Yifan Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Based on the information you provided, I found through testing that the change in your chart was due to a different order of Auto Mesh in the two charts.

 

In the first chart your order is No, Patron, Si; whereas in chart 2 the order is Patron, No, Si. Since all the Patrons in chart 1 are zero except for Caso1, which is right in the middle of the three columns, it achieves exactly the result you are looking for.

 

My pbix reproduces your problem and you can achieve your goal by adjusting the Auto Mesh order.

 

1.Add a column and change type to whole number.

 

Column = 
IF ( 'Table'[Auto Mesh] = "A", "2", IF ( 'Table'[Auto Mesh] = "B", "1", "3" ) )

 

vyifanwmsft_1-1704443832920.png

 

Fianl output:

vyifanwmsft_2-1704443884027.png

 

 

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Yifan Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , What I usually do is, Instead of using legend I use both columns on the Axis, Sort on the Axis, and Concatenate label off. And then I go ahead and do conditional formatting to get different color for bars using field value option and measure

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pane-66e0afcb15f3

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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