I have a set of data with two.fields and want to compare the value of each record to 1.5 times the average of the values for that group. For example, assume a table with the following information:
Category | Item | Value
———————————-
A | Z1 | 1
A | Z2 | 1
A | Z3 | 1
A | Z4 | 0
A | Z5 | 1
B | Z6 | 1
B | Z7 | 1
B | Z8 | 0
C | Z9 | 1
C | Z10 | 8
C | Z11 | 1
The output I am aiming for is taking the average value, by category, and then compare the value of each item to that average * 1.5 and then count how many items exceed that average * 1.5 threshold.
The output for the above might be something like:
Category | Avg * 1.5 | Count ( >=Avg * 1.5)
————————————————————
A | 1.2 | 0
B | 1.0 | 2
C | 5.0 | 1
I’ve tried a number of calculated field options, but feel like I’m stuck at this point without having made any progress. Any suggestions on how to accomplish this? Thanks!