Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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"
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])
May be like this:
=Count({<[Specialty Code] = { '700' }, Date = {"$(=Date(Today() -1, 'DateFieldFormatHere'))"}>} [Bed Days.Occupied])
That works (however I don't need the datefieldformat as I'm just looking for a number in a text box. Problem is now that when i make a date selection the number changes, I want it to be today no matter what the user selects
Hi
based on sunny's solution and your query: ............I want it to be today no matter what.................
try below ?!!
=Count( { 1 <[Specialty Code] = { '700' }, Date = {"$(=Date(Today() -1, 'DateFieldFormatHere'))"}>} [Bed Days.Occupied])
I don't think this should happen, can you share a sample where this is happening for you?
I don't think 1 should bee needed
It's the text box, Occupied Bed Days
Are you making selection in Date or are you making a selection in Day, Month, Year fields??? If Day, Month and Years are the fields you are making selections in, then you probably need this:
=Count({<[Specialty Code] = { '700' }, [Date] = {"$(=Date(Today() -1))"}, InfoCalDay, InfoCalMonth, InfoCalYear>} [Bed Days.Occupied])
Perfect, thank you
How about the empty beds box?