Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Change date format in DIRECT Query Mode - not on list of selectable formats

Hi,    I would like to use the format dd/MM/yyyy HH:mm for my datetime column in DirectQuery mode. This format is not on the list of available datetime formats.    Using a calculated column with ...
  • Icey's avatar
    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.