Forum Discussion

moutinhoabreu's avatar
moutinhoabreu
Frequent Visitor
7 years ago
Solved

DATEDIFF, calculate days between today and SQL date field, error

Hi All,   I had a new column with the DATEDIFF working fine and suddendly stoped working.   Age = DATEDIFF(utcnow()+ 'Contas correntes de clientes'[dataven]+ DAY)   I was calculating the number...
  • Greg_Deckler's avatar
    Greg_Deckler
    7 years ago

    Seems like this should be the one:

     

    Age = DATEDIFF(UTCTODAY(), 'Contas correntes de clientes'[dataven], DAY)

     

    Is this a column or a measure?

     

    This is what worked for me in a standard Calendar table:

     

    Column = DATEDIFF(UTCTODAY(), [Date], DAY)