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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
erickd1190
Contributor III
Contributor III

Creating Aging Dimension

Hello,

Can anyone help out with this?

Qlik is saying that I need another ')' but I shouldn't

IF("Last Hire Date" >='03/01/2017' AND "Last Hire Date" <'04/01/2017','NewHire',

        IF("Last Hire Date" >='01/01/2017' AND "Last Hire Date" <'03/01/2017','1-3 Months'

              IF("Last Hire Date" >='09/01/2016' AND "Last Hire Date" <'01/01/2017','3-6 Months',

                   IF("Last Hire Date" >='03/01/2016' AND "Last Hire Date" <'09/01/2016','1.5-2 Years',

                       IF("Last Hire Date" >='01/01/2015' AND "Last Hire Date" <'03/01/2016','2 Years',

                          IF("Last Hire Date" >= '01/01/2008' AND "Last Hire Date" <'01/01/2015','2+ Years',

                           'N/A'))))))

1 Solution

Accepted Solutions
OmarBenSalem
Partner - Champion II
Partner - Champion II

IF("Last Hire Date" >='03/01/2017' AND "Last Hire Date" <'04/01/2017','NewHire',

        IF("Last Hire Date" >='01/01/2017' AND "Last Hire Date" <'03/01/2017','1-3 Months',// you forgot a comma here

              IF("Last Hire Date" >='09/01/2016' AND "Last Hire Date" <'01/01/2017','3-6 Months',

                   IF("Last Hire Date" >='03/01/2016' AND "Last Hire Date" <'09/01/2016','1.5-2 Years',

                       IF("Last Hire Date" >='01/01/2015' AND "Last Hire Date" <'03/01/2016','2 Years',

                          IF("Last Hire Date" >= '01/01/2008' AND "Last Hire Date" <'01/01/2015','2+ Years',

                           'N/A'))))))

View solution in original post

5 Replies
OmarBenSalem
Partner - Champion II
Partner - Champion II

Where are you putting this?

erickd1190
Contributor III
Contributor III
Author

I am using this to create a custom dimension within the Master Items.

OmarBenSalem
Partner - Champion II
Partner - Champion II

can you share a sample qvf file to work with?

OmarBenSalem
Partner - Champion II
Partner - Champion II

IF("Last Hire Date" >='03/01/2017' AND "Last Hire Date" <'04/01/2017','NewHire',

        IF("Last Hire Date" >='01/01/2017' AND "Last Hire Date" <'03/01/2017','1-3 Months',// you forgot a comma here

              IF("Last Hire Date" >='09/01/2016' AND "Last Hire Date" <'01/01/2017','3-6 Months',

                   IF("Last Hire Date" >='03/01/2016' AND "Last Hire Date" <'09/01/2016','1.5-2 Years',

                       IF("Last Hire Date" >='01/01/2015' AND "Last Hire Date" <'03/01/2016','2 Years',

                          IF("Last Hire Date" >= '01/01/2008' AND "Last Hire Date" <'01/01/2015','2+ Years',

                           'N/A'))))))

erickd1190
Contributor III
Contributor III
Author

I must of looked over this a dozen times and missed that comma.

Thanks for looking at it!