Forum Discussion
Changing date format to have short month name
- 1 year ago
Justas4478 Hi! Try with:
= Table.TransformColumns(#PREVIOUS STEP, {{"Start of Week", each Date.ToText(_, "dd MMM"), type text}})
If it's ok, please accept my answer as solution!
BBF
BeaBF It worked.
But when I tried to do sorty by column by Start of week.
I got this error message
I think it has something to do with no year being in new column that I created.
I think some sorting column needs to be created.
Justas4478 you can just order the column in the power query, so it will mantain that order, code:
= Table.Sort(Custom1, {{"Start of Week", Order.Ascending}})
or you can create an index in DAX like:
- Justas44781 year ago
Post Prodigy
- BeaBF1 year ago
Super User
Justas4478 Of course, it happened because there were multiple years for the same date. But I thought you wanted it intentionally without the year. So it works. Accept my first response as the solution
BBF