Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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"

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'))"}