Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
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'))"}