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 Everyone,
I have a calender table in power bi and one of the columns shows 'MonthYear' in below format.
How can I shorten it to 'Jan-2023', 'Feb-2023' or 'Jan-23' 'Feb-23' for example?
Thank you!
Solved! Go to Solution.
Please try this as another Calculated Column:
AbbMonthYear = FORMAT( [MonthYear], "mmm-yyyy" )
Regards,
Use Sort by Column to sort this new Column by your original MonthYear column
Please try this as another Calculated Column:
AbbMonthYear = FORMAT( [MonthYear], "mmm-yyyy" )
Regards,
Hi rsbin,
Thanks for your message. I tried your method but the new column has data type as 'text'. When I use this in my chart, I wanna sort my x-asix by the order of month. When they are in text format, they are sorted alphabeticallt which is not what i want. Any suggestion what I can do?
Thanks!
Thank you rsbin for your fast reply!! You are amazing!!
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 |
---|---|
124 | |
87 | |
87 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |