Page 1 of 1

Compare Multiple Dates - Publish Newest

Posted: Wed Nov 11, 2015 7:16 pm
by jebsen
I am attempting to to find the newest date from data in three different databands and publish it to the first databand. I have tried many different ideas. When i use am IIF statment it errors out if I nest another IIF statement. So the IIF statement only compares two dates. Any suggestions?

Re: Compare Multiple Dates - Publish Newest

Posted: Thu Nov 12, 2015 10:45 am
by HighAley
Hello.

What error do you get?
Please, send us a sample report template with data.

Thank you.

Re: Compare Multiple Dates - Publish Newest

Posted: Thu Nov 12, 2015 4:17 pm
by jebsen
Here is the report

Please see the formula residing in 3.18. Is there a better way to do this? I simply want to find the latest changes that were made from an 'Updated' date field that resides in three different tables.

The error produced on checking the expression says "There is no matching overloaded method for 'IIF(Object,Object,Object)'

Re: Compare Multiple Dates - Publish Newest

Posted: Fri Nov 13, 2015 10:34 am
by HighAley
Hello.

If you need to compare dates, you could use next expression:

Code: Select all

{IIF(Variable1>Variable2,IIF(Variable1>Variable3, Variable1, Variable3), IIF(Variable2>Variable3, Variable2, Variable3))}
The variables have date type.

Thank you.

Re: Compare Multiple Dates - Publish Newest

Posted: Fri Nov 13, 2015 3:00 pm
by jebsen
Thank You. However it is giving me an error. The error produced on checking the expression says "There is no matching overloaded method for 'IIF(Object,Object,Object)'

Re: Compare Multiple Dates - Publish Newest

Posted: Mon Nov 16, 2015 5:28 am
by HighAley
Hello.

Maybe we missed something.
Please, send us your report template with sample data.

Thank you.

Re: Compare Multiple Dates - Publish Newest

Posted: Mon Nov 16, 2015 3:28 pm
by jebsen
it is in the post above.

Re: Compare Multiple Dates - Publish Newest

Posted: Tue Nov 17, 2015 6:40 am
by HighAley
Hello.

To help you we need to reproduce the issue.
We can do this without sample data.

Thank you.

Re: Compare Multiple Dates - Publish Newest

Posted: Tue Nov 17, 2015 4:15 pm
by jebsen
What is the best way to submit the data? an excel file? It is simply a question of three dates from three tables.

Re: Compare Multiple Dates - Publish Newest

Posted: Wed Nov 18, 2015 8:05 am
by HighAley
Hello.

Please, send us any simple report template that reproduces the issue. If it's necessary, you could use our Demo data.

Thank you.