Newbies Toddski Posted July 10, 2007 Newbies Posted July 10, 2007 (edited) Background: I have a survey database for our company. It surveys employees about their training needs. We ask employees to rank how often they use a particular software and how important training would be. I have created summary fields that give me the Averages of importance. Now I want to display the data in a report. I have a sub-summary section when sorted by Training Program name that displays the Avg of Importance for each training program. The problem: I need a field that is calculated based on the Importance average Summary Field. If the average is between 4 and 6 display "Important." If the Average is between 6 and 10 display "Very important." Case and If statements do not seem to work because when you look at the report I always get "Important." I believe the problem is that my calculation field is not a summary field but you cannot write a custom summary field. So is there a way to use a calculation in a sub summary? Thanks, Todd Edited July 10, 2007 by Guest
comment Posted July 10, 2007 Posted July 10, 2007 You need to use the GetSummary() function in order to reference a sub-summary in a calculation. For example: Let ( averageByObject = GetSummary ( sAverage ; ObjectID ) ; Case ( averageByObject > 6 ; "Very Important" ; averageByObject > 4 ; "Important" ; "Not Important" ) ) Make sure the breakField parameter is the same field used to define the sub-summary part on the layout.
Newbies Toddski Posted July 10, 2007 Author Newbies Posted July 10, 2007 How the heck did I miss that one. Works great! Thanks
Recommended Posts
This topic is 6346 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