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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Nazar
Helper I
Helper I

Sort a columns by the rows

How to sort columns in column chart the same way like rows in table are situated http://take.ms/pWh6T
In order to be in such way http://take.ms/i9huS

b/c now it sorts columns by Alphabetic order http://take.ms/fCQyU

2 ACCEPTED SOLUTIONS
Sean
Community Champion
Community Champion

Create a Method Order Column - giving each Method its custom order number (you may have to use 01, 02... for first 9)

then concatenate the 2

 

Method Sort = [Method Order]&". "&[Method]

 

And use that column in the Chart

View solution in original post

Sean
Community Champion
Community Champion

Don't Load the Data - click Edit
Sorting3.png

Then in the Query Editor - BEFORE you load - change the Data Type - the zeros should show up
Sorting2.png
Hopefully this takes care of it.

View solution in original post

8 REPLIES 8
Sean
Community Champion
Community Champion

@Nazar

In the top right corner of your chart - click the 3 dots - select Sort By - pick your choice - then you can sort either AZ or ZA

Sorting.png

I want to maintain such order http://take.ms/zTGQd , not alphabetic 
in order that columns http://take.ms/gctQ4 meet position of row in the table http://take.ms/9n0bx

 

Sean
Community Champion
Community Champion

Create a Method Order Column - giving each Method its custom order number (you may have to use 01, 02... for first 9)

then concatenate the 2

 

Method Sort = [Method Order]&". "&[Method]

 

And use that column in the Chart

it still something wrong http://take.ms/MluGe
even after I click Sort By Method sort http://take.ms/3ac7c it still nothing
this is table http://take.ms/BqIQs

Sean
Community Champion
Community Champion

@Nazar

Convert the numbers to TEXT (in the column before you concatenate) and add 0 to the first 9 numbers

 

so they are 01, 02, 03, ..., 09, 10, 11 etc...

 

That should do it.

I do that http://take.ms/C6iGv but when I copy it to Power BI transforms it to such view http://take.ms/A8a8S

In Edit Queries when I click Source It shows 01, 02, 03 http://take.ms/sFkOa

Sean
Community Champion
Community Champion

Don't Load the Data - click Edit
Sorting3.png

Then in the Query Editor - BEFORE you load - change the Data Type - the zeros should show up
Sorting2.png
Hopefully this takes care of it.

thanks:)

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.