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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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