I am working in CR 8.5 to an OpenIngres Database.
I am getting results from 18 categories and need to find the top 5 based on count. Example:
Reason Count VariableName
Scuff 10 ShScuff
Assembly 25 ShAssembly
Color 0 ShColor
Dirty 2 ShDirty
Flash 12 ShFlash
Sinks 4 ShSinks
....
....
....
Reason and Counts are in two fields, I am getting them into their respective variables and summing them within a group.
In the group footer I need to display the top 5 of the 18 reasons with the count totals. Should I put the counts into an array(18) based on specific indexes? Is there a formula to extract the top 5 and return the index location then compare to the predefined index? Or is there an easier way?
Thanks.
I am getting results from 18 categories and need to find the top 5 based on count. Example:
Reason Count VariableName
Scuff 10 ShScuff
Assembly 25 ShAssembly
Color 0 ShColor
Dirty 2 ShDirty
Flash 12 ShFlash
Sinks 4 ShSinks
....
....
....
Reason and Counts are in two fields, I am getting them into their respective variables and summing them within a group.
In the group footer I need to display the top 5 of the 18 reasons with the count totals. Should I put the counts into an array(18) based on specific indexes? Is there a formula to extract the top 5 and return the index location then compare to the predefined index? Or is there an easier way?
Thanks.