Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How come the format month-year is wrong in the calendar table

Hi Everyone,

Happy New Year!

 

I have a question about the calendar table which I created last year and hope someone could help me out.

 

In my calendar table, the date column is '1/5/2023' and I created another column called 'MonthYear(formatted) as I only want to show Month and Year which was 'Jan-23'. However, when I came back from vacation, the month/year column for '1/5/2023' is now showing 'Jan-24'. I don't know what happened to it and I have to deliver a report next Monday. Can someone advise how to correct this error please?

 

kathyyy19_0-1704384251521.png

 

Thank you!!

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi Kaviraj11,

 

Thank you soooo much for your fast reply. Below is the MonthYear Column for '1/5/2023 which I just noticed is also incorrect.

 

kathyyy19_0-1704384768570.png

This is how I computed the 'MonthYear' Column:

 

kathyyy19_1-1704384833665.png

 

 

View solution in original post

I see that you already have a column 'MonthYearLong' which is displaying a correct data. Could you just replace 'MonthYearLong' instead of 'MonthYear' in an expression of calculated column 'MonthYearLong'




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

7 REPLIES 7
Kaviraj11
Super User
Super User

How did you generate MonthYearLong? 

 

Or

Use this expression to create a calculated column and it will display the expected output. The Column in an expression should be a date data type.

FORMAT('Table'[Date],"mmm-yy")



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Kaviraj11
Super User
Super User

Can you tell or provide a screenshot of what value is in 'MonthYear' column?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

Hi Kaviraj11,

 

Thank you soooo much for your fast reply. Below is the MonthYear Column for '1/5/2023 which I just noticed is also incorrect.

 

kathyyy19_0-1704384768570.png

This is how I computed the 'MonthYear' Column:

 

kathyyy19_1-1704384833665.png

 

 

Anonymous
Not applicable

Thank you @Kaviraj11  for all your help!!! 

I see that you already have a column 'MonthYearLong' which is displaying a correct data. Could you just replace 'MonthYearLong' instead of 'MonthYear' in an expression of calculated column 'MonthYearLong'




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

Just to clarify, I want to still keep the 'MonthYearLong' column but create a new column for the shorter form

Anonymous
Not applicable

Hi Kaviraj11,

 

Yes that's a great idea. Do you mind showing me how to create a colmun from 'MonthYearLong' to show the short form please? i.e. From 'Jan-2023' to 'Jan-23' please?

 

Thank you very much in advance for your help, I really really appreciate it!

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.