Record 1 - Field1='1' Field2='1' Field3='BLANK' Field4='1'
Record 2 - Field1='0' Field2='1' Field3='0' Field4='1'
Record 3 - Field1='1' Field2='1' Field3='1' Field4='1'
What I need to do is SUM all of the 4 fields and COUNT non-blanks for all four fields and then divide the SUM by the COUNT, and do this across Records.
In this example, the way I need it to work would be that the SUM=9 and the COUNT=11 for total calculated average of 81.81%.
In Caspio, I can create the two calculated fields to SUM and COUNT for each record. Then I can run an aggregation to SUM each calculated field to get the numbers 9 and 11.
However, I cannot create a second calculation to create SUM/COUNT using the aggregated values.
If I create a single calculation for SUM/COUNT it does this for each individual record. I can then graph that field and AVERAGE them together but it will calculate in the following manner:
Record 1 = 100%
Record 2 = 50%
Record 3 = 100%
Calculated Average = 83.33%
Is there a way to use the aggregated values in any manner?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
TroyPurdue
Example:
Record 1 - Field1='1' Field2='1' Field3='BLANK' Field4='1'
Record 2 - Field1='0' Field2='1' Field3='0' Field4='1'
Record 3 - Field1='1' Field2='1' Field3='1' Field4='1'
What I need to do is SUM all of the 4 fields and COUNT non-blanks for all four fields and then divide the SUM by the COUNT, and do this across Records.
In this example, the way I need it to work would be that the SUM=9 and the COUNT=11 for total calculated average of 81.81%.
In Caspio, I can create the two calculated fields to SUM and COUNT for each record. Then I can run an aggregation to SUM each calculated field to get the numbers 9 and 11.
However, I cannot create a second calculation to create SUM/COUNT using the aggregated values.
If I create a single calculation for SUM/COUNT it does this for each individual record. I can then graph that field and AVERAGE them together but it will calculate in the following manner:
Record 1 = 100%
Record 2 = 50%
Record 3 = 100%
Calculated Average = 83.33%
Is there a way to use the aggregated values in any manner?
Link to comment
Share on other sites
21 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.