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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
hiren_1222
New Member

Sorting the column

I am not able to sort the column and save it. In the power query, the sorting is done correctly but in table view the sorting disappears and when restarting again back to normal. No sorting works. Please help

2 ACCEPTED SOLUTIONS
Deku
Super User
Super User

Sorting in powerquery does not follow through into power BI.

 

You can apply custom sort orders to columns within Power BI which will be reflected in visuals


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

Akash_Varuna
Super User
Super User

Hi @hiren_1222  It's because Power Query transforms the data but does not control visual sorting in Power BI. To address this:

  1. Index Column in Power Query: Add an index column in Power Query to preserve the desired order. Then, in Power BI, sort your column by this index.

  2. Custom Sort in Power BI: For specific orders like months or categories, use "Sort by Column" in Power BI and select the appropriate column for sorting.
    For more details please go thhorugh the link that @Deku has shared 
    If this post helped please do give kudos and accept this as a solution
    Thanks In Advance 

View solution in original post

3 REPLIES 3
Akash_Varuna
Super User
Super User

Hi @hiren_1222  It's because Power Query transforms the data but does not control visual sorting in Power BI. To address this:

  1. Index Column in Power Query: Add an index column in Power Query to preserve the desired order. Then, in Power BI, sort your column by this index.

  2. Custom Sort in Power BI: For specific orders like months or categories, use "Sort by Column" in Power BI and select the appropriate column for sorting.
    For more details please go thhorugh the link that @Deku has shared 
    If this post helped please do give kudos and accept this as a solution
    Thanks In Advance 

Bro, tried everything. Nothing works

 

Deku
Super User
Super User

Sorting in powerquery does not follow through into power BI.

 

You can apply custom sort orders to columns within Power BI which will be reflected in visuals


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors