Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

SQL Server DQ Date data type

When connecting to SQL Server (2014 standard edition) and choosing direct query date data type is represented as DateTime in powerBI. e.g. 4/15/2004 12:00:00 AM. Since DQ doesn't allow transformation...
  • Anonymous's avatar
    Anonymous
    9 years ago

    Hi Anonymous,

    When I write T-SQL statements to get data from SQL Server, I can reproduce your issue.


    In this case, you can directly change the data type of the date column in Report View, please click the Date column in the Fields panel of the following screenshot, then you can click on Modeling in the Desktop ribbon and change its type to Date.


    Also you can change the date format to your desired format.



    Thanks,
    Lydia Zhang