Forum Discussion

xerxel's avatar
xerxel
Icon for Advocate II rankAdvocate II
8 years ago

IsInNextNYears not working but IsInNextNMonths does!

Why is it that with this command, it returns zero rows:

 

    #"Filtered Rows1" = Table.SelectRows(#"Added Custom", each Date.IsInNextNYears([CloseDate], 2)),

 

but with this command it does return rows?

 

    #"Filtered Rows1" = Table.SelectRows(#"Added Custom", each Date.IsInNextNMonths([CloseDate], 24)),

 

Aren't these equivalent? Something is messed up!!!

1 Reply