Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Weighted averages (Gewichtete Mittelwerte)

Hello Community,

is it possible to create weighted averages QlikView? I have a table that looks like this:

GruppeAlterAnzahl Personen

1

101
1202
1302
1403
2102
2252
2503
2601

Now I would like the following calculations:

For Group 1: ((1 * 10) + (2 * 20) + (2 * 30) + (3 * 40)) / (1 + 2 + 2 + 3) = 230/8 = 28.75

For Group 2: ((2 * 10) + (2 * 25) + (3 * 50) + (1 * 60) / (2 + 2 + 3 + 1) = 280/8 = 35

Can someone help me because someone?

I thank you now,

Anja

Translated with Google Translate - Qlik Community Administrative Team

Hallo Community,

ist es möglich in Qlikview gewichtete Mittelwerte zu erstellen? Ich habe eine Tabelle die so aussieht:

<table>

Jetzt hätte ich gerne folgende Berechnungen:

Für Gruppe 1: ((1*10)+(2*20)+(2*30)+(3*40))/(1+2+2+3) = 230/8 = 28,75

Für Gruppe 2: ((2*10)+(2*25)+(3*50)+(1*60)/(2+2+3+1) = 280/8 = 35

Kann mir da irgendjemand helfen?

Ich danke schon jetzt,

Anja

2 Replies
maxgro
MVP
MVP

sum(Alter*[Anzahl Personen]) / sum([Anzahl Personen])

1.png

Not applicable
Author

Thank you so much! I thought it's the not weighted Version! But it works perfectly!