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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.