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
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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.