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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
helen_pip
Creator III
Creator III

A count of values for yesturdays date

Hello

I am looking to gain some help with writing some syntex

My scenario is that I have a volume of patients and would like to know how many patients we had in hospital yesturday.  Yet all I have as a date is the patients admission date, and a patient could have been admitted yesturday or 2 weeks before yesturday, yet I would want to count both.

I know the syntex should be something like the following:

If(Today()-1 >= admission_date and <=Today()-1,1)

Is anyone able to help me

Kind Regards

Helen


1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe

=Count(DISTINCT  If( admission_date <= Today()-1, patientID))

View solution in original post

2 Replies
swuehl
MVP
MVP

Maybe

=Count(DISTINCT  If( admission_date <= Today()-1, patientID))

helen_pip
Creator III
Creator III
Author

Thanks so much

That works for me!


Thanks

Helen