Forum Discussion
wenners68
Helper II
8 years agoOrder column chart by month over multiple years
Hi,
I want to sort my data by month over several years and end up with a chart showing "Jan 2017", , , and so on until "Jan 2020"
I created a column (MonthYear) with the format above and can sort the data if I do it for a 12 month period, but nothing longer.
Is there an easy way to do this?
3 Replies
- bizbi
Advocate I
1. Format the year column as a whole number [Year].
2. Format the month column in MM format using format function in a calculated column:
Month MM=FORMAT(MONTH('Table'[Date]),"00")
3. Next, concatenate both these columns to give the Order column:
Order=[Year] & [Month MM]
4. Use this column for sorting (format as whole number if necessary).
- v-piga-msft
Resident Rockstar
- wenners68
Helper II
Hi, yes and I have marked it as accepted.