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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
kevbrown
Creator II
Creator II

Adding Date to set analysis

I'm looking at some set analysis and have the following -

=Count( { < [Specialty Code] = { '700' } > } [Bed Days.Occupied])

I want to add a date criteria to is so it only looks at yesterdays date. My date field is called "Date"

Labels (1)
13 Replies
kevbrown
Creator II
Creator II
Author

Think I've done it

=Sum( { <[Specialty Code] = { '700' }, [Date] = {"$(=Date(Today() -1))"}, InfoCalDay, InfoCalMonth, InfoCalYear>} [Available Beds.Beds Available])-

Count( { <[Specialty Code] = { '700' }, [Date] = {"$(=Date(Today() -1))"}, InfoCalDay, InfoCalMonth, InfoCalYear>} [Bed Days.Occupied])

sunny_talwar

Looks good to me if it gives you what you want

kevbrown
Creator II
Creator II
Author

Why is this not working?

=Count({<[Specialty Code] = { '700' },[Outcome] = { 'Attended' }, Date = {"$(=Date (Today() -1))"}, InfoCalDay, InfoCalMonth, InfoCalYear>} [refrl_refno])

maheshkuttappa
Creator II
Creator II

try date  format to match the Date field , something like below

Date = {"$(=Date(Today() -1,'MM/DD/YYYY'))"}