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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-rongtiep-msft
Community Support
Community Support

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
v-rongtiep-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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