Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Average per product compared to total avarege

I have a set of data like this (in orange)

Udklip.JPG

The average per product is in blue and know I like to calculate the 'average per product' devided by the 'total avere' and put the numbers (those in green) in a bar chart.

Example Product A:

The average is 3.5 ((5+2) / 2 ) and compared to the total average i get 92 % (3.5 / 3.8 * 100)

Example Product C:

The average is 5 ((6+4) / 2 ) and compared to the total average i get 132 % (5 / 3.8 * 100)

How do I do that?

1 Solution

Accepted Solutions
sunny_talwar

This?

Capture.PNG

Expression 1: =Avg(Val)

Expression 2: =Avg(Val)/Avg(TOTAL Val)

View solution in original post

2 Replies
sunny_talwar

This?

Capture.PNG

Expression 1: =Avg(Val)

Expression 2: =Avg(Val)/Avg(TOTAL Val)

Not applicable
Author

Thanks - I wasn't aware of the 'Total function':

=Avg(Val)/Avg(TOTAL Val)