Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi guys
I have a stacked bar graph in Power Bi that currently stacks alphabetically. I'm wanting to change the order that the data is stacked to a order that makes sense to me but is not alphabetical or even by size... is there some way to do this?
Thanks for your help!
Grace
Solved! Go to Solution.
Hi @GraceC
You will need to make use of the "Sort by Column" feature of the data model. In essence, you will need another column that has values sorted in your preferred order for your main column.
Is there a way to custom sort the stacked bar chart? Not alphabetically and not by size. Sort by other column is also alpha or numerical.
In Excel Pivot Tables one can reorder items in a field manually - dragg-and-dropp with the mouse.
I should be able to assign the colour I need to a certain item and drag it to change the position in the stacked bar chart.
I found a way to custom sort. It's by creating a group in the Legend. Prefix the groups names with a number to your liking.
Then in the pop-up window add items to groups.
Hi @GraceC
You will need to make use of the "Sort by Column" feature of the data model. In essence, you will need another column that has values sorted in your preferred order for your main column.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 40 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |