Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
I am still learning Power BI so maybe this is expected behavior but I think it is a bug.
I am charting survey data and have added a calculated column to determine whether a response is negative or positive (-1/1). I am using an index column to sort the Legend in my 100% stacked bar chart. The bars that have negative values are not being sorted in the same order as the legend as you can see in the screenshot below. The X-axis is just a sum of the calculated column and is correctly representing the data.
The problem persists when changing the chart to other stacked bar charts. I haven't been able to determine how the bars are being sorted or why.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Update:
We stack from zero, away from zero, like stacking blocks.
You have two series that are always negative, and two always positive, which is unique. If a series were to be sometimes positive or negative, there is no stacking algorithm that could guarantee colors are in the same order from left to right / top down.
For example, using the image provided, look at red arrow - what if orange series was negative here? We cannot place it to the right of Blue, that's positive plot area.
Best Regards,
Community Support Team _ Yingjie Li