The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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.
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:
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!
Solved! Go to Solution.
@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
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.
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
User | Count |
---|---|
65 | |
62 | |
60 | |
53 | |
28 |
User | Count |
---|---|
181 | |
82 | |
67 | |
47 | |
44 |