Forum Discussion

afinman's avatar
afinman
New Member
9 years ago
Solved

DateDiff and NOW do not work

I have an increasingly frustrated with PowerBI   I have many tables with DateTime values in from SQL Server. I want to do DateDiff functions on these in PowerBI comparing to NOW() so I can get Days...
  • v-chuncz-msft's avatar
    9 years ago

    afinman,

     

    As shown in the error message, the data type is nvarchar and can not be automatically converted to datetime for the current date/time settings. You'll need to perform explicit conversion accordingly.