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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors