Hi All,
I am trying to sort the group based on a calcualted average value. The data look like
NAME, TYPE, VALUE
N1, A, 4
N1, A, 5
N1, B, 4
N2, A, 1
N2, B, 2
N2, B, 4
I grouped the records by Name and the average is calculated based on Type. Each group has two average, Average of Type A and Average of Type B. The calculated average is as follow:
CAL_AVG = (AVG_OF_TYPE_A * 2 + AVG_OF_TYPE_B) /3
I put the CAL_AVG in the group footer and want to order the group by CAL_AVG.
Is there a way to do that?
Thanks
tofuTnT
I am trying to sort the group based on a calcualted average value. The data look like
NAME, TYPE, VALUE
N1, A, 4
N1, A, 5
N1, B, 4
N2, A, 1
N2, B, 2
N2, B, 4
I grouped the records by Name and the average is calculated based on Type. Each group has two average, Average of Type A and Average of Type B. The calculated average is as follow:
CAL_AVG = (AVG_OF_TYPE_A * 2 + AVG_OF_TYPE_B) /3
I put the CAL_AVG in the group footer and want to order the group by CAL_AVG.
Is there a way to do that?
Thanks
tofuTnT