If formula using today

Stimulsoft Ultimate discussion
Post Reply
laducd
Posts: 115
Joined: Thu Oct 23, 2014 2:15 pm

If formula using today

Post 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)}
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: If formula using today

Post 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.
laducd
Posts: 115
Joined: Thu Oct 23, 2014 2:15 pm

Re: If formula using today

Post by laducd »

Worked thanks
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: If formula using today

Post by Andrew »

Great! You are welcome!
Post Reply