cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
kathyyy19
Helper II
Helper II

How to shorten the dates in power bi calendar table

Hi Everyone,

 

I have a calender table in power bi and one of the columns shows 'MonthYear' in below format.

 

kathyyy19_0-1695321092261.png

 

How can I shorten it to 'Jan-2023', 'Feb-2023' or 'Jan-23' 'Feb-23' for example?

 

Thank you!

2 ACCEPTED SOLUTIONS
rsbin
Super User
Super User

@kathyyy19 ,

Please try this as another Calculated Column:

AbbMonthYear = FORMAT( [MonthYear], "mmm-yyyy" )

Regards,

 

View solution in original post

@kathyyy19 ,

Use Sort by Column to sort this new Column by your original MonthYear column

rsbin_0-1695323407949.png

 

View solution in original post

4 REPLIES 4
rsbin
Super User
Super User

@kathyyy19 ,

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!

@kathyyy19 ,

Use Sort by Column to sort this new Column by your original MonthYear column

rsbin_0-1695323407949.png

 

Thank you rsbin for your fast reply!! You are amazing!!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors