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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Custom Column date formula

Hi All,

 

I am trying to create a custom formula to with a 3 digit month.

 

I am using the forumla = FORMAT([Payment Date],"mmm")

 

I am getting the following message "Expression Error : The name 'FORMAT' not recognised.

 

 

 
New to DAX, can someone help.
 
Many thanks
 
Herbz
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Ok, solved the solution is 

 

Date.ToText([#"Payment Date"],"MMM")

View solution in original post

9 REPLIES 9
pxg08680
Resolver III
Resolver III

@Anonymous

a1.PNG

It's working fine for me. Make it as new column.

Anonymous
Not applicable

Whats "DATEDATA"?

@Anonymous

That's a sample table name. Sorry for confusing.

Anonymous
Not applicable

Sorry, still not working.

 

Is there anything I need to install first before I can use these formulas?

 

Thanks

@Anonymous

Close your Power Bi (if desktop version). Re-open and try doing the same.

Create a new COLUMN 

Anonymous
Not applicable

Ok, getting warmer (new at this).

 

What seems to work is this expression.....Number.ToText(Date.Month([#"Payment Date"])), but this gives me a month number. How do I translate this into 3 digit month name?

Anonymous
Not applicable

Ok, solved the solution is 

 

Date.ToText([#"Payment Date"],"MMM")

Hi @Anonymous,

Please mark your solution as answer, so more people wull benefit from here.

Thanks,
Angelia

@Anonymous

Can you mark your post as Solved so that some one can use it later.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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