Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
wanass123
Contributor III
Contributor III

Average score with distinct - help

Hi ! 

please I need the  average score for each problem with distinct response ID

Table : 

Response ID Score Problem 
373135 25% TV
373135 25% TV
373094 50% TV
373130 100% Mobile
373160 25% Mobile
373234 100% TV
373234 100% TV
373234 100% Mobile
373234 100% Mobile
373234 100% TV
373234 100% TV

 

expected result : 

 

Problem  Average Score 
TV  58.33%
Mobile  75%

 

Thanks in advance .

Labels (2)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

peter_brown_1-1662850254214.png

Avg(Aggr(Sum(Score)/Count(Problem),ResponseID,Problem))

 

View solution in original post

3 Replies
sidhiq91
Specialist II
Specialist II

@wanass123  Could you please elaborate on the problem, sorry I am not able to understand your requirement and the expected output.

wanass123
Contributor III
Contributor III
Author

Thanks sidhiq for your reply , please check I modified  the table score with % , data duplicated and I should not delete the duplicate , just I need to count the average  problem score for distinct response ID   please check table again . 

BrunPierre
Partner - Master
Partner - Master

peter_brown_1-1662850254214.png

Avg(Aggr(Sum(Score)/Count(Problem),ResponseID,Problem))