Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
fheidenstecker
Partner - Creator II
Partner - Creator II

Average per Customer

Hi There,

i want to calculate an Average Prive per Item per Customer.

But i am Stuck 😞

The average is not correct, if there are 2 Prices per customer. I Played around with aggr and total, but it is not working.

AVG.png

I want the average of the average per customer (see attached Excel) as an result. But it is not Working 😞

I rellay would appriciate some help!

 

Thanks

Fabian

Labels (2)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

I think this is what you need

=Avg(Aggr(Avg(Price),Customer))

But for some reason, you excluded Customer I for your expected output. If you want to exclude I, you can try this

=Avg({<Customer -= {'I'}>}Aggr(Avg(Price),Customer))

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

I think this is what you need

=Avg(Aggr(Avg(Price),Customer))

But for some reason, you excluded Customer I for your expected output. If you want to exclude I, you can try this

=Avg({<Customer -= {'I'}>}Aggr(Avg(Price),Customer))
tresB
Champion III
Champion III

Try like:

=Avg(Aggr(avg(Price), Customer))
fheidenstecker
Partner - Creator II
Partner - Creator II
Author

Thanks @sunny_talwar, it works. 

I did not want to exclude I, i made mistake 😞