Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
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.
Hi, @Anonymous ;
I tested it, and it is working.
Measure = FORMAT(FIRSTDATE('Table'[Date]),"Long date","en-US")
The final show:
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.
@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
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |