Complete the code to sort the 'Sales' column in ascending order using DAX.
SortedSales = SORT(SalesTable, SalesTable[Sales], [1])Use ASC to sort the 'Sales' column in ascending order.
Complete the code to sort the 'Date' column in descending order in a Power BI table visual.
TableVisual.SortByColumn = 'Date' [1]
Use DESC to sort the 'Date' column in descending order.
Fix the error in the DAX formula to sort 'Product' by 'Category' in ascending order.
SortedProducts = SORT('ProductTable', 'ProductTable'[[1]], ASC)
To sort products by category, use the 'Category' column in the SORT function.
Fill both blanks to create a calculated table sorted by 'Region' ascending and 'Sales' descending.
SortedTable = SORTBY('SalesData', 'SalesData'[[1]], [2], 'SalesData'[Sales], DESC)
Sort first by 'Region' ascending (ASC) then by 'Sales' descending (DESC).
Fill all three blanks to create a measure that returns the top 5 products sorted by 'TotalSales' descending.
TopProducts = TOPN(5, 'ProductSales', 'ProductSales'[[1]], [2], 'ProductSales'[[3]])
Use 'TotalSales' as the sort column, 'DESC' for descending order, and 'ProductName' as the tie-breaker column.