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
Gualjohn
New Member

stacked bar chart reorders x axis

I have a stacked bart chart showing productivity by person (x  Axis) by day (y axis stacked) for a one week period.  My source data has a column for total weekly producivity which I use to sort in decending order, with the intent of ordering the x axis in decending level of weekly performance.

 

The visualization insists on reordering the x axis by alphabetizing the names.  Can I work around this in some way?

1 ACCEPTED SOLUTION

Firstly, my apologies, I had thought I replied to this.  In your example, the first column on the left should become black, then white, then silver etc.  For me, the X - Axis stayed in alphabetic order, regardless of the sort, and regardless of the fact that I had ordered the rows in excel prior to opening Power BI.  My solution was to add a ranking number in front of the name in excel:  ex: 1. Black, 2. White, 3. Silver etc.  

View solution in original post

4 REPLIES 4
v-jiascu-msft
Employee
Employee

Hi @Gualjohn,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

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

Firstly, my apologies, I had thought I replied to this.  In your example, the first column on the left should become black, then white, then silver etc.  For me, the X - Axis stayed in alphabetic order, regardless of the sort, and regardless of the fact that I had ordered the rows in excel prior to opening Power BI.  My solution was to add a ranking number in front of the name in excel:  ex: 1. Black, 2. White, 3. Silver etc.  

Thanks for sharing, @Gualjohn. You really have the solution for your scenario.

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Employee
Employee

Hi @Gualjohn,

 

It seems you mean the Stacked Column Chart. Please refer to the snapshot below. You can do it like that. If you still can't achieve it, please share a sample file. Please mask the sensitive parts first.

stacked-bar-chart-reorders-x-axis

 

Best Regards,
Dale

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

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.

Top Solution Authors