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: 
Not applicable

Help with forming expression

Hi all,

I need to write an expression and need help. The data is as shown below:

CompanyParticipantQuestionAnswer
C1JohnA5
C1JohnB6
C1JackA3
C1JackB3
C1JamesA6
C1JamesB4
C1JimA4
C1JimB5
C2AndyA5
C2AndyB2
C2BillA3
C2BillB4

There are two questions A and B. Each participant answers both questions on a scale of 1-6.This example has just two companies.

Requirement:

When I choose a company I firstly have to determine the average for question A -

Get list of all participants who answered above the company average.From this population, find out their answers for question B and then finally decide if their answer to question B was above or below the company average for question A and label them meets and does not meet expectations. If we use company C1 as example average for question A  would be (5+3+6+4)/4 = 4.5 . John and James answered more than company average for question A. Get their answers for question B - John answered 6, James answered 4. Therefore John met expectations (6>4.5) and James did not meet expectations(4<4.5). We need to calculate the total percentage for meets and did not meet and display them as bar graphs( this case would be 50-50) . say If we had a third respondent who answered 5 to question A(>4.5) and 5 to question B(4.5), then meets would be 75% and does not meet would be 50%

question.PNG

I should be able to choose any company and see their corresponding results. Can someone please let me know how I need to get started?

Please let me know if I need to explain this in more detail.

Thanks,

Praveen

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Maybe like attached?

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Maybe like attached?

Not applicable
Author

Thank you