Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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!
Solved! Go to Solution.
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.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingYou 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.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reporting| User | Count |
|---|---|
| 50 | |
| 40 | |
| 32 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 87 | |
| 73 | |
| 37 | |
| 28 | |
| 26 |