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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
caf_fdc
Regular Visitor

FORMAT formula for calculated column, not working properly

Hi, I'm new here. I'm having troubles with the FORMAT function:

- I have a daily Date Table, calculated from CALENDARAUTO function.

- I'm using this formula create a calculated column to get an abbreviated month name: 

MMM* =
FORMAT(
    MONTH('Date'[Date]),
    "MMM"
)
- The result does not make any sense, all January dates returns "Dec", and all other months returns "Jan".
- When I try to extract the month number with Month = MONTH('Date'[Date]), everything works fine.
 
I have always use the first formula and this is the first time I have this problem, and actually the same formula works fine in other report. I have tried to create a new report and the result is the same.
 
Help please.
 
caf_fdc
 
 
1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @caf_fdc 

Use this DAX

 

MMM =
FORMAT(
    'Date'[Date],
    "MMM"
)

 

Or

 

MMM FUll name =
FORMAT(
    'Date'[Date],
    "MMMM"
)

 


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin

View solution in original post

2 REPLIES 2
Bibiano_Geraldo
Resolver I
Resolver I

Remove MONTH function like below:

MMM* =
FORMAT(
    'Date'[Date],
    "MMM"
)
 
If this work, please mark this answer as solution
PijushRoy
Super User
Super User

Hi @caf_fdc 

Use this DAX

 

MMM =
FORMAT(
    'Date'[Date],
    "MMM"
)

 

Or

 

MMM FUll name =
FORMAT(
    'Date'[Date],
    "MMMM"
)

 


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.