Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
TonyG
New Member

combo chart

Hi,

 

Is it possible to change the order in a stacked column combochart?

 

for example:

 

https://powerbi.microsoft.com/en-us/documentation/powerbi-service-tutorial-customize-x-axis-and-y-ax...

 

Is it possible for example that the combochart (THis Year Sales, Last Year Sales and Gross Margin Last Year % by month) on the link above to change the order stacked column chart so that the stacked column chart starts with "Last Year Sales" and on top  "This year Sales"??

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @TonyG,

 

You should create a conditional column in Query Editor mode first.

1.PNG

 

In data view tab, change the "sort by column" selection from default to the new conditional column.

2.PNG

 

3.PNG

 

But in chart visual, it is not able to change the legend order based on need, it is in Ascending Order by default.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @TonyG,

 

You should create a conditional column in Query Editor mode first.

1.PNG

 

In data view tab, change the "sort by column" selection from default to the new conditional column.

2.PNG

 

3.PNG

 

But in chart visual, it is not able to change the legend order based on need, it is in Ascending Order by default.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
bsas
Post Patron
Post Patron

Hi,

 

There is few possibilities:

 

1) Create calculated column/measure wich return text (e.g. 1.Last year and 2.This year) then it will put 1 below and 2 above.

2) Create index column/measure for dates and use function "Sort by column", there choose index column.

 

If you have 2 columns with revenue for this and last year then just change their order in neded field (column values).

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.