Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
neena123
Partner - Creator
Partner - Creator

IF then statement with > and < in expression.

I am trying to create a table that displays the customer whose last purchases was 12 months ago to 23 months ago. This is the expression I am trying to use:

=IF(Max(Date(Today()))-Max([Order Date])>367<763, [Bill To Name])

However, I am getting no data using this. How can I use the greater than and less than symbols in an expression for a straight table? Any help is appreciated!

1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Neena B:

Try this:

=IF(Date(Today())-Max([Order Date])>367 AND Date(Today())-Max([Order Date])<763, [Bill To Name])

Today function don't need Max.

Kind regards

View solution in original post

2 Replies
Anonymous
Not applicable

Hi Neena B:

Try this:

=IF(Date(Today())-Max([Order Date])>367 AND Date(Today())-Max([Order Date])<763, [Bill To Name])

Today function don't need Max.

Kind regards

neena123
Partner - Creator
Partner - Creator
Author

So simple! Thanks!!