Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

if then else returning conflciting results

Hi,

I have created an if then else statement as below

=if (monthstart(today())= Max([Template Date]), [Revenue Target Value])

the stamenet looks at the first day of the month(01/08.2016) and picks the matching template date(there are lots) and should return the target value record.

However, it returns -  for all records that have template date records of 01/01/2016, 01/02/2016 etc

If I change the if then else statement to

=if (monthstart(today())= Max([Template Date]), 1, 0)

it display a 1 for all records were the month start = the max template date

Hence it would sugges there is an issue around the revenue target value field

I'm lost

14 Replies
Qrishna
Master
Master

Post some sample data.

Not applicable
Author

getting the same results. Only the records with no historical data

Not applicable
Author

Hi,

thanks for getting in touch.

What data do you want and how do I get I to you

Qrishna
Master
Master

you put some sample data i an qvw with your expression and logic and atatch it.

Not applicable
Author

please excuse my ignorance but I don't know how to do that