Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
@Anonymous ,
Please try this as another Calculated Column:
AbbMonthYear = FORMAT( [MonthYear], "mmm-yyyy" )
Regards,
@Anonymous ,
Use Sort by Column to sort this new Column by your original MonthYear column
@Anonymous ,
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!
@Anonymous ,
Use Sort by Column to sort this new Column by your original MonthYear column
Thank you rsbin for your fast reply!! You are amazing!!
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
46 |