Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
qv_testing
Specialist II
Specialist II

Average with include total

Hi Community,

I have one scenario,  not sure if it is possible.

I have 3 columns, Key, N and Y - derived columns Y/N calculation. 

I have one row Total Average i.e we have to calculate based on column Average .

N total column average 770,607, same as rest averages.

Users wants to see in Text box Y/N column total average : 94.80%  (Please note here we have to include 1.126887975  on average )

KeyNYY/N
A411,515411,5801.000157953
B411,515360,0740.874996051
C721,201715,0000.991401842
D1,065,3781,012,4890.950355910
E728,371708,7420.973051438
F1,142,5621,023,7500.896012998
G01,510,763-
H1,452,2331,128,3190.776954392
I1,002,689944,7750.942240862
Total Average770,607868,3881.126887975

 

Thanks in Advance!

 

Labels (1)
4 Replies
qv_testing
Specialist II
Specialist II
Author

Experts, any possibility ? 

MayilVahanan

Hi @qv_testing 

Try like below

=Num(Avg(Y) / Avg(N) /100 + Avg(Y/N) , '#,###.#%') gives 93.6%

Can you explain, how you got 94.8%.?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
chrismarlow
Specialist II
Specialist II

Hi,

I am not sure if this makes any sense mathematically, but you can try variations on the below;

If(RowNo()=0,((sum(Y)/sum(N))+sum(aggr(Avg(Y/N),Key)))/(count(distinct Key)),Avg(Y/N))

20201202_1.png

Cheers,

Chris.

qv_testing
Specialist II
Specialist II
Author

I'm sorry, Users were confused with requirement.

Thank you for your valuable time for response anyway.

Calculation is normal Average. It was done.