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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
sidyahmed_pbix
Frequent Visitor

how to keep same order between power query rows and table visual rows after sorting rows power query

 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sidyahmed_pbix ,

You'll need to add a column to your data to be use as a Sort By column for your tagname, so it doesn't default to alphabetical. If you have or generate a query in which there is only one tagname per row, you can add an index column while it is in the desired order and use that.

Sort one column by another column in Power BI Desktop - Power BI | Microsoft Docs

 

If that is not the case and that you want the data to be displayed in the order the rows were uploaded into Power BI, then you might have to create a new Index Column and sort the data using that new column.

 

The Below link takes you to a similar post 

https://community.powerbi.com/t5/Desktop/How-to-create-a-custom-sort-order-for-a-visualization/m-p/5... 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @sidyahmed_pbix ,

You'll need to add a column to your data to be use as a Sort By column for your tagname, so it doesn't default to alphabetical. If you have or generate a query in which there is only one tagname per row, you can add an index column while it is in the desired order and use that.

Sort one column by another column in Power BI Desktop - Power BI | Microsoft Docs

 

If that is not the case and that you want the data to be displayed in the order the rows were uploaded into Power BI, then you might have to create a new Index Column and sort the data using that new column.

 

The Below link takes you to a similar post 

https://community.powerbi.com/t5/Desktop/How-to-create-a-custom-sort-order-for-a-visualization/m-p/5... 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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