Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Help with datetime

Hi all...    I need help.   I need filter  querry    help with this #"Filas filtradas1" = Table.SelectRows(#"Columna condicional agregada1", each [FechaVencimiento] < DateTime.LocalNow() +7), ...
  • ibarrau's avatar
    6 years ago

    Hi. You can't add a plus and number just like that to date. Try this

    #"Filas filtradas1" = Table.SelectRows(#"Columna condicional agregada1", each [FechaVencimiento] < Date.AddDays(DateTime.LocalNow(), 7) ),

    Hope this helps,

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.