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: 
selvakumara
Creator
Creator

AND Condition for Same date fields

Hi ,

I want to get the lessthan 24 months and greater than 12 months data using set expression.

This is my set expression.

COUNT({($<id]={'17'},[DATE]={"<=$(AddMonths(ADMISSION_DATE,24), 'MM-DD-YYYY')"},[DATE]={">=$(AddMonths(ADMISSION_DATE,12), 'MM-DD-YYYY')"} >)} [Name])

Is it correct ?

Thanks,

Selva

4 Replies
agigliotti
MVP
MVP

maybe this:

= COUNT( {< id = {'17'}, DATE = {"<=$(=AddMonths(ADMISSION_DATE,24))>=$(=AddMonths(ADMISSION_DATE,12))"} >) Name )

I hope it's really what you are looking for.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
stigchel
Partner - Master
Partner - Master

Try with

COUNT({$<[DATE]={">=$(=Date(AddMonths(ADMISSION_DATE,12), 'MM-DD-YYYY'))<=$(=Date(AddMonths(ADMISSION_DATE,24), 'MM-DD-YYYY'))"}>} [Name])

Where ADMISSION_DATE is one single date

selvakumara
Creator
Creator
Author

Thanks for your response. Will try it

selvakumara
Creator
Creator
Author

It will basically return multiple date based year selections