Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
tahasaleem
Contributor
Contributor

Average of calculated field

Hello All,

I am trying to calculate the average of a calculated field in Qlikview. The last column 'Mean Difference' in the following table shows what I I am trying to calculate in Qlikview.

Region, Paybales, Receivables and Difference columns are all calculated fields as well.

As shown below, I am trying to calculate the average of  'Difference' column by each region. And the 'Difference' column is the difference between Payables and Receivables columns.

tahasaleem_0-1588884932243.png

Thanks in advance.

4 Replies
Taoufiq_Zarra

Maye be :

=Avg(total <Region> Payables-Receiveables)
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
johnca
Specialist
Specialist

Or this;

round(aggr(Avg( Payables-Receivables),Region),1)

This puts the value on the top line by region per your image.

johncaqc_0-1588902069103.png

HTH,

John

tahasaleem
Contributor
Contributor
Author

Thanks Taoufiq and John. Unfortunately both solutions are not working. The column is showing no values. Any other suggestions?

 

johnca
Specialist
Specialist

Yes, please supply some raw data without the calculations already done on them. Our solutions work for the data provided so in order to help you need to supply more granular data.