Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a simple stacked bar chart that has two bars; number of "Y" and the number of "N". The problem is that the "Y" totals far outweigh the "N" totals but the "N" totals are on the bottom. How can I flip the two around?
Thanks,
Jossy
Solved! Go to Solution.
Hi @Jossy
Create another table that has just 2 columns and 2 rows as follows
Create a relationship to this table from your FHG > 0.5 column in your current table.
In the new table highlight the FHG > 0.5 column and use the "Sort by column" to select the other column
Now use the FHG > 0.5 column from the new table on the axis of your visual
if you want to change the order of the bars in the columns, just edit the numbers in the Order By column
Here is a PBIX file you can play with
https://1drv.ms/u/s!AtDlC2rep7a-ojQRqHypfci5RjU6
A much easier solution is to reorder the legend.
click the 3 dots at the top right of the visual, then...
Darn. Thanks for responding!
Hi There,
You can change the order of the bars using the "Sort by Column" feature. Did you give that a try?
Hi. Thanks. Where is that option?
Hi @Jossy
Create another table that has just 2 columns and 2 rows as follows
Create a relationship to this table from your FHG > 0.5 column in your current table.
In the new table highlight the FHG > 0.5 column and use the "Sort by column" to select the other column
Now use the FHG > 0.5 column from the new table on the axis of your visual
if you want to change the order of the bars in the columns, just edit the numbers in the Order By column
Here is a PBIX file you can play with
https://1drv.ms/u/s!AtDlC2rep7a-ojQRqHypfci5RjU6
Phil - as well as having the best name in the world you are a total superstar! All sorted. Even learnt lots about creating tables and entering data 🙂
Sorry it's taken so long to reply - crazy time at work.
Phil
You can, you just need to use the "sort by column" feature.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |