cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
sjpaq
Regular Visitor

Sorting the x-axis on a stacked column chart

The x axis is showing fiscal years which are stored as text(4) (not numeric). The chart appears to be sorted by fiscal year descending, I would like it ascending. Also, could I sort it by bar height, either shortest to tallest or talles to shortest.

Thanks in advance for the help

sjpaq_0-1674913342886.png

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @sjpaq ,

 

When you're editing a report in Power BI, you can choose a column to define the sort order of another column.

Here's a common example. You have a Month Name column, and when you add it to a visual, the months are being sorted alphabetically: April, August, December, February, and so on. However, you want them to be sorted chronologically. This article shows how to set the sort order of one column by a different column, in Power BI Desktop or in the Power BI service.

 

For more details, please refer to:

Sort one column by another column in Power BI - Power BI | Microsoft Learn

 

Best Regards,

Jianbo Li

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
hariram2
Helper I
Helper I

Hi,

 

Please follow below steps

1.Goto data model in power bi desktop

hariram2_0-1675054113000.png

2.Goto sort by column

hariram2_1-1675054167920.png

3.And check the Bar chart

 

v-jianboli-msft
Community Support
Community Support

Hi @sjpaq ,

 

When you're editing a report in Power BI, you can choose a column to define the sort order of another column.

Here's a common example. You have a Month Name column, and when you add it to a visual, the months are being sorted alphabetically: April, August, December, February, and so on. However, you want them to be sorted chronologically. This article shows how to set the sort order of one column by a different column, in Power BI Desktop or in the Power BI service.

 

For more details, please refer to:

Sort one column by another column in Power BI - Power BI | Microsoft Learn

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors