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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
AVZ
Frequent Visitor

Re-ordering the x-axis values

Knipsel.PNG

 

In the first Chart im trying to order it by ascending, starting with 0-1 ending with >5.

For the second chart I want to order days starting with monday ending with friday.

Any help would be greatly appreciated!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AVZ,

 

This subject is explained in the Power BI documentation.

 

https://powerbi.microsoft.com/en-us/documentation/powerbi-service-change-how-a-chart-is-sorted/

 

Hope you find your answer here 🙂

 

Regards,

L.Meijdam

View solution in original post

6 REPLIES 6
dhaval0011
New Member

This bug still persists.

Ideally, it should function at least in simplest form, i.e. how data is provided it should plot it on chart.

In my table, WK 1 is first and WK 8 is last. In one line chart, it takes correct order from WK 1 to WK 8. But in another one, it starts with WK 7 and jumbles futher.

 

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @AVZ,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

 

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.
Anonymous
Not applicable

Hi @AVZ,

 

This subject is explained in the Power BI documentation.

 

https://powerbi.microsoft.com/en-us/documentation/powerbi-service-change-how-a-chart-is-sorted/

 

Hope you find your answer here 🙂

 

Regards,

L.Meijdam

Anonymous
Not applicable

Thanks for sharing correct solution.

Anonymous
Not applicable

Hi @Anonymous @AVZ 

 

What if I don't want to use a numeric value or a text field for the sort order?  I have a requirement to sort by a process step, e.g. cut, paint, quality control, ship.  I will have a certain number of works orders in each step.  I want to show that on a bar chart.  The chart will immediately draw attention to any step where works orders are backlogged. 

 

Neither the number of orders in a step nor the alphabetic sort or of the step name is suitable for sorting the bar chart in the chronological sequence of process steps.

Hey @Anonymous 

 

In this case what you can do is, put the set of process in a table and order them by a key. Then in Power BI take this key as well as a field. Click on the column that you want ordered in graph -> go to modelling tab -> go to sort by column -> select the key column that you used in database for ordering. 

 

And you are done.

 

Let me know if the doubt exists.Untitled.png

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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