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 » Fri Oct 13, 2017 4:25 pm

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: 7864
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: If formula using today

Post by HighAley » Sun Oct 15, 2017 8:04 am

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 » Wed Oct 25, 2017 2:04 pm

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

Re: If formula using today

Post by Andrew » Thu Oct 26, 2017 2:45 pm

Great! You are welcome!
Post Reply