therron36 Posted August 5, 2008 Posted August 5, 2008 Hi, I have a portal which tracks client sessions by date. The portal is within a client details layout. One of the field on this layout is "health plan date" (a date field). What I would like to do is have a calc field which displays the number of sessions a client has had since the health plan date. Another words how many portal rows display sessions dated at or later than the date displayed in the "health plan date" field Can this be done with the count function? Thanks
therron36 Posted August 5, 2008 Author Posted August 5, 2008 O.K. - figured it out via a relationship. Still would like to know if there is a way of doing this with a calc field.
comment Posted August 5, 2008 Posted August 5, 2008 With two calc fields: One in the Sessions table (result is Number) = SessionDate ≥ Clients::health plan date The other in the Clients table, using Sum ( Sessions::calcField ) Or you could write a custom function to recurse over the child records, using the GetNthRecord() function.
therron36 Posted August 6, 2008 Author Posted August 6, 2008 Comment - Thanks for taking the time to answer my question. Seems obvious with hindsight :
Recommended Posts
This topic is 6013 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now