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: 
drohm002
Creator II
Creator II

Set analysis question

Hello, I am trying to get a total count of [Accession Number] for only the past 90 days using the today function in set analysis.  What I have listed below isnt working.  Can anyone please help me?

 

count({<[Begin Date Time]={"$(=Date(Today()-90, 'YYYY/MM/DD'))"}, [Exam Status]={'Complete'}>} [Accession Number])

1 Reply
Sayed_Mannan
Creator II
Creator II

The issue is with the date comparison. You should use a range for the past 90 days. Here’s the corrected expression:

count({<[Begin Date Time]={">=$(=Date(Today()-90, 'YYYY/MM/DD'))<=$(=Date(Today(), 'YYYY/MM/DD'))"}, [Exam Status]={'Complete'}>} [Accession Number])

 

Hope this helps.