cancel
Showing results for 
Search instead for 
Did you mean: 
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
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors