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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

FORMAT function, not accepting optional 3rd parameter.

I am trying to force display some dates in en-US, since my collation is different.

 

So; i have this code: 

 

VAR FirstDateV =
FORMAT(
FIRSTDATE('Date'[Date])
,"Long Date"
)

 

I have tried many times, and whenever i try to pass the 3rd optional parameter ("en-US) it fails.

 

Why am I unable to pass the 3rd parameter?

 

FORMAT function (DAX) - DAX | Microsoft Docs

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

Is your problem solved? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

I tested it,  and it is working.

Measure = FORMAT(FIRSTDATE('Table'[Date]),"Long date","en-US")

The final show:

vyalanwumsft_0-1659336772429.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , refer the example, leave blank or write some format and check

 

at https://docs.microsoft.com/en-us/dax/format-function-dax#datetime-with-optional-locale_name

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.