Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
My original data is text format and month and date are otherway around due to wrong regional setting.
It is supposed to be 1 Jun 2019 but shown as 6 Jan 2019 when I change format by using data type.
I want to marge two tables later so I want to amend it by using custom column fomula in query.
The folllowing dax works in data but not query. Can anyone help?
=DATE(YEAR([Date]),DAY([Date]),MONTH([Date]))
All the best,
LoveParis
Solved! Go to Solution.
Try creating a custom column in Power query with the code:
Date.FromText([Column1], "en-US")
and then change the type of the new column to Date. If required, delete the original "Column 1"
Hi @paris
Have you tried changing the file option for loading data and choosing the locale you need? Go to
Options and Settings->Options-> (Current File) Regional settings
and in "Locale for import" choose an appropriate option. English(United States) would probably do it, from what you describe. The selection of the locale need to happen before you change the type of the column to Date
Try creating a new column using "Columns from Example". Try the below steps:
🙂
Try creating a custom column in Power query with the code:
Date.FromText([Column1], "en-US")
and then change the type of the new column to Date. If required, delete the original "Column 1"
Hi AIB,
Thank you very much for your advice. It worked perfectly.
All the best,
LoveParis
User | Count |
---|---|
97 | |
77 | |
77 | |
48 | |
26 |