Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3948 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi there,

 

I have a report which generates course run rates for a particular date period which works fine.  The report includes a run rate which is simply the total number of course days that ran (were not cancelled) divided by the total number of days in the report period. All well and good.

 

I need to add some sub-summaries so that the run rates are also calculated when the courses are sorted by course stream (streams are classifications of training like subject areas). 

 

So a given report for a month would have up to 13 sub-summaries based on course stream each with its own run rates per course stream displayed.

 

However I can't work out how to get run rates to appear - if i try to divide the summary of the days that ran by the summary of the total days, in the sub-summary field, I just get the run rate for the whole group of records.

 

For example:

 

Course 1 stream 1 - duration 2 days - not cancelled

Course 2 stream 1 - duration 3 days  - not cancelled

 

Course 3 stream 2 - duration 1 day - cancelled

Course 4 stream 2 - duration 2 days - not cancelled

Course 5 stream 2 - duration 1 day - not cancelled

 

Course 6 stream 3 - duration 4 days - not cancelled

Course 7 stream 3 - duration 2 days - cancelled

 

the sub-summary for stream 1 should show a run rate of 100% (5/5 days ran)

the sub-summary for stream 2 should show a run rate of 75% (3/4 days ran)

the sub-sumamry for stream 3 should show a run rate of 66% (4/6 days ran)

 

I can run off these reports by searching by one stream at a time but i want a report that sub0summaries run rates for multiple streams over a given period.

 

Any advice gratefully received.

Posted

What does a record in this table look like?

i don't understand the question I'm sorry - its a report with records in list view with a sub-summary above and below the body and a trailing grand summary - is that what u mean?

Posted

No, I mean what fields does it have?

BODY

 

course_code (text)

course_name (text)

dates_summary (text)

venue_suburb (text)

course_length (number)

cancelled_flag (text, checkbox = x)

rescheduled_flag (text, checkbox = x)

count_courses = count(course_code)

day_cancelled =  if(cancelled_flag = X, course_length, 0)

course_ran = if(cancelled_flag = X, 0, 1)

days_ran = if(cancelled_flag = X, 0, course_length)

total_registrations (related field from registrations table)

 

TRAILING GRAND SUMMARY

 

total_courses = summary of count_courses

total_courses_ran = summary of course_ran

total_days_ran = summary of days_ran

total_days_cancelled = summary of days_cancelled

run_rate_courses = total_courses_ran/total_courses

run_rate_course_days = total_days_ran/total_days

Posted

I am sorry, but I am still missing the fields that would tell us in what month and which "stream" the course should be reported. I'll skip the month issue and assume the following fields:

• course_length (number)
• cancelled_flag (text, checkbox = x)
• days_ran = if(cancelled_flag = X, 0, course_length)

stream (text or number)

total_days = summary, total of course_length
• total_days_ran = summary, total of days_ran


Now you need to add a calculation field (result is Number) =

GetSummary ( total_days_ran ; stream ) / GetSummary ( total_days ; stream )

and place it in the sub-summary (when sorted by stream) part.

 

 

 

---

P.S.

Unrelated to the current issue, but your cancelled_flag field should be Number, using a checkbox with a value list of "1". Then days_ran can be simply =

If ( not cancelled_flag ; course_length )

This topic is 3948 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.