Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am trying to compare individual performance to their group's average performance across periods.
I have the following formulas:
1. Metric: sum(Metric)
2. Group Average:
if(Metric > 0,
Sum({$<Individual= >} TOTAL <Group,Period> Metric)/
COUNT({$<Individual= >} TOTAL <Group,Period> Metric)
)
These work as intended in a straight table. I can either have both an individual and their group selected, or just the individual and the Group Average still works
Group | Period | Individual | Metric | Group Average |
131 | ||||
b | 0 | n | 68 | 67.5 |
b | 1 | n | 63 | 61 |
However, when I change this table to a graph, if I select an individual and leave the group selection at the default, it shows the average across all groups (~36) instead of just that individual's group's average.
I have attached my document for reference.
My real data has about 5 groups, and the periods most often used will be weeks.
Thank you,
Elin
so the expression in the set analysis is split in three parts