Forum Discussion
Month Name in sorting order in Direct Query
- 9 years ago
Hi,
Create a column that is xxx = month(query1[date raised]))
Idk if you already have it already, if you have it, no need to create it :D, and then, you just need to sort the MonthName by the column that gives the month number :P
Hi,
Create a column that is xxx = month(query1[date raised]))
Idk if you already have it already, if you have it, no need to create it :D, and then, you just need to sort the MonthName by the column that gives the month number :P
That won't work as I do not have a table view; this is a Direct Query.
- TomMartens9 years agoSuper User
Maybe this will help - hopefully:
https://community.powerbi.com/t5/Desktop/DirectQuery-Sort-Data-by-Week-Day/m-p/97676#M41146
- averilboyle9 years agoFrequent Visitor
All working now; the month no. column was what was missing :)
- PAPutzback25 years agoHelper II
FYI, The link from Tom Marten is the correct fix when dealing with a table that load via Direct Query. Which was the problem stated in the OP. The suggested solution is partially right, except that you won't see the table in the Model view. You have to select the column in the table to get the option to Sort by Column to appear.