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

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.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.