Forum Discussion
Need help with simple Column Chart graphic
- 2 years ago
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 - Anonymous2 years ago
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" ) )Fianl output:
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.
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