Forum Discussion
Sort date using shortened month name
- 4 years ago
You will want to add a date table to your model, they you have a column called something like Month Year in there that uses the date of the last day of the month (it's date so it sorts correctly) but you format it like mm-yyyy so it also displays correctly. Here is an article talking about specifically the problem you are trying to solve.
https://www.sqlbi.com/articles/creating-a-simpler-and-chart-friendly-date-table-in-power-bi/
You will want to add a date table to your model, they you have a column called something like Month Year in there that uses the date of the last day of the month (it's date so it sorts correctly) but you format it like mm-yyyy so it also displays correctly. Here is an article talking about specifically the problem you are trying to solve.
https://www.sqlbi.com/articles/creating-a-simpler-and-chart-friendly-date-table-in-power-bi/
jdbuchanan71 Thanks for help. I think you are leading me to the right direction, but I am still trying to understand how to apply after I create that new measure.
I am having other issue now (after I copied this) - "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value".
Update: Now, I realized that I needed to create Table, instead of Measure.
Now, I am trying to incorporate this newly create Table with other tables.
Do I have to join this Table with the main table to make it work?