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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Is the returned table from a FILTER, automatically sorted based on the SORT applied in the DATA tab?

Hello

 

Is the returned table from a FILTER, automatically sorted based on the SORT applied in the DATA tab?

 

If not, how can I sort it based on multiple criteria?

 

Thanks!

1 ACCEPTED SOLUTION
edhans
Community Champion
Community Champion

You would need to use the ORDER BY statement within a DAX query. But your best bet is to sort the visual (Table, matrix, chart) the way you want. The order of the data in the actual table or query is irrelevant to the results. The only time I use ORDER BY is in DAX Studio so I can see the results the way I want, but once I copy my DAX back to Power BI, I remove that and just sort my visuals the way I want.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Community Champion
Community Champion

You would need to use the ORDER BY statement within a DAX query. But your best bet is to sort the visual (Table, matrix, chart) the way you want. The order of the data in the actual table or query is irrelevant to the results. The only time I use ORDER BY is in DAX Studio so I can see the results the way I want, but once I copy my DAX back to Power BI, I remove that and just sort my visuals the way I want.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.