Page 1 of 1

If formula using today

Posted: Fri Oct 13, 2017 4:25 pm
by laducd
I would like to use today in my IIF formula, basically saying IF today is > then the date coming from my report, give me one value, if not give me another. I am returning no value below.


{IIF(today()>Dates_for_Header.Day_5_Date_First,Closing_Balance.Day_5_Closing_Balance_Sum,Closing_Balance.Day_4_Closing_Balance_Sum)}

Re: If formula using today

Posted: Sun Oct 15, 2017 8:04 am
by HighAley
Hello.

Please, try to use next expression:

Code: Select all

{Today>Dates_for_Header.Day_5_Date_First?Closing_Balance.Day_5_Closing_Balance_Sum:Closing_Balance.Day_4_Closing_Balance_Sum}
Please, check the the type of the Day_5_Date_First column is Datetime.
Thank you.

Re: If formula using today

Posted: Wed Oct 25, 2017 2:04 pm
by laducd
Worked thanks

Re: If formula using today

Posted: Thu Oct 26, 2017 2:45 pm
by Andrew
Great! You are welcome!