Forum Discussion
Matrix Sort Order by Month and Year Problem
- Anonymous8 years ago
Mond - Your suggestion got me in the ball park for the next step. I'm sure you would have done something similar but I found an answer here: https://community.powerbi.com/t5/Desktop/how-to-sort-Date-MonthYear-column/td-p/102700
I did what Tri Nguyen suggested by adding another numerical column which I could sort my MonthYr column by. It is multi to multi relation but not text. Worked perfectly. Thank you both!
Still no go. I'm thinking I have a problem to fix in the one to many relationship. I can't sort any column with multiple values by a column that has unique values without getting the same error for different columns.
The data type is "Text" on Month column.
Please change it to Date format and it should work.
- Anonymous8 years agoNot applicable
Mond - Changing data type only caused errors.
- Anonymous8 years agoNot applicable
bump
- Mond8 years agoHelper III
Hi Hanley,
I got a question, when your Date coulmn show value (1/1/2000), how come Month value shows "Jan05".
Can you please duplicate Date column and use Data Type = Date, and Format (MMMM yyyy)
- Anonymous8 years agoNot applicable
Great catch Mond - I had not added the table/column name correctly. I had only DATE when it should have been DateTBL[Date]. That gives me the correct MonthYear (Jan00) but I still cannot change format from Text to Date or sort column by Date column with out the errors. Nor fix my original problem of sorting in the correct order.
- Anonymous8 years agoNot applicable
Mond - Your suggestion got me in the ball park for the next step. I'm sure you would have done something similar but I found an answer here: https://community.powerbi.com/t5/Desktop/how-to-sort-Date-MonthYear-column/td-p/102700
I did what Tri Nguyen suggested by adding another numerical column which I could sort my MonthYr column by. It is multi to multi relation but not text. Worked perfectly. Thank you both!