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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

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
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.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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