Forum Discussion
Change date format in DIRECT Query Mode - not on list of selectable formats
- 7 years ago
Hi Anonymous ,
You can change DateTime type in Power Query Editor.
= Text.From(Date.Day([SalesDate]))&"/"&Text.From(Date.Month([SalesDate]))&"/"&Text.From(Date.Year([SalesDate]))&" "&Text.From(Time.Hour([SalesDate]))&":"&Text.PadStart(Text.From(Time.Minute([SalesDate])),2,"0")
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
You can change DateTime type in Power Query Editor.
= Text.From(Date.Day([SalesDate]))&"/"&Text.From(Date.Month([SalesDate]))&"/"&Text.From(Date.Year([SalesDate]))&" "&Text.From(Time.Hour([SalesDate]))&":"&Text.PadStart(Text.From(Time.Minute([SalesDate])),2,"0")
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
On second thought - it appeared to resolve the issue at first glance. However, I get the message "This query contains transformations that can't be used for DirectQuery."
I accepted the proposed solution without proper testing...
- Icey7 years ago
Community Support
Hi Anonymous ,
If your time is with the same minutes, for example, '9:00' and '10:00', you can change the expression like this:
= Table.AddColumn(#"Removed Columns", "Custom", each Text.From(Date.Day([SalesDate]))&"/"&Text.From(Date.Month([SalesDate]))&"/"&Text.From(Date.Year([SalesDate]))&" "&Text.From(Time.Hour([SalesDate]))&":00")
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- ToddFischer4 years agoNew Member