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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.