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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
kathyyy19
Helper III
Helper III

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

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!





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

 

 

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!





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

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors