on 02-25-2018 10:23 PM
ColumnA ColunmnB ColumnC ColumnC
A 10 xyz Ab
A 20 def Ab
A 5 mno Xy
B 10 pqr Ab
B 40 abc Xy
C 10 uvw Xy
I need to calculate total average as well as average for each value of ColumnD
Total Average(divided by unique ColumnA):
(10+20+5+10+40+10)/3=31.66
Now I need Average for Ab=>
(10+20+10)/2
Average for Xy=>
(5+40+10)/2
I made Calculated Column in Hana:
Counter-> CA_Count on ColumnA(to get unique Count) CA_Avg ->
ColumnB/CA_Count
for Avg of Ab: CA_AVG_Ab :
if(ColumnD='Ab',CA_Avg,0)
but this Value is not coming correctly when we use filter in output
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.