March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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?
Solved! Go to Solution.
Hi @wenners68,
By the solution from @bizbi, have you solved the problem?
If you need additional help, please share some data sample and expected output, so that we can help further investigate on it?
Best Regards,
Cherry
Hi @wenners68,
By the solution from @bizbi, have you solved the problem?
If you need additional help, please share some data sample and expected output, so that we can help further investigate on it?
Best Regards,
Cherry
Hi, yes and I have marked it as accepted.
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).
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |