Forum Discussion

tameismael's avatar
tameismael
Helper I
4 years ago
Solved

Custom Time Intelligence Function

Dear members,   I was trying to write a custom formula to implement the following expressions in many ways but I faced errors each time can you please help me out. The expression is : IF TODAY is >...
  • AlexisOlson's avatar
    4 years ago

    Like this?

     

    NumWeeks =
    IF (
        TODAY () > DATE ( 2021, 9, 13 ),
        DATEDIFF ( DATE ( 2021, 9, 13 ), TODAY (), DAY ) / 7
    )