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

pivot table not displaying results

Hello there,

 

I am new to Qlikview  and I need your assistance to get the results of my survey answers displayed in a pivot table

I have 2 tables loaded from a database for survey questions and answers.

One with the survey question text , the survey that the question belong to and the question ID

question_textsurvey_idquestion_id
Do you find the steps in the documents simple and straightforward?50efkjgbjsrrhjtrwj98735jksdfeharqonrtwe4377

 

the second table contains the answers and the question id corresponding to that answer, the unique answers id, the answer dates, the survey id that the question and answer belong to, the user email and the unique user id who responded to that survey

 

answer_idanswer_dateanswer_textreplied_question_idsurvey_iduser_detailsuser_survey_id
eoifjeclkmwe56739822018-03-19T10:59:27.204ZYes5jksdfeharqonrtwe437750efkjgbjsrrhjtrwj9873xyz@mail.com9474d9d0-2b64-11e8-afa2-614a88624bdb-1521457162221
eriofmkelegy3473200e2018-03-19T10:59:34.597ZThanks, it was great5jksdfe45rqonrtwe437050efkjgbjsrrhjtrwj9873abc@mail.com9c6a0d40-2b64-11e8-82e4-d1195c5377f8-1521457175572
9574857ltymtyshe88832018-03-19T10:59:38.404ZNot really5jksdfeharqo382we437950efkjgbjsrrhjtrwj9873abc@mail.com9c6a0d40-2b64-11e8-82e4-d1195c5377f8-1521457175572
sacdapyui689343kkjdf62018-03-19T10:59:38.705Z4 stars5jksdfeharqonrtwe439050efkjgbjsrrhjtrwj9873anonymous

9d9e4780-2b64-11e8-9d76-3db6a4092cf1-152145717759

 

What I need to do is display in a pivot table the user mail, the questions he replied to (translate the replied_question_id to question_text) and his answers

I tried this: if(replied_question_id=question_id, question_text,) but it didn't display anything.

 

Can you please assist how can I achieve that result?

14 Replies
Anonymous
Not applicable
Author

hello @santhiqlik ,

 

I have attached the sample data for you.

 

Thanks for all the assistance you're providing  Smiley Happy

santhiqlik
Creator
Creator

Hi,

Please find the attached QVW for the same. I see that 2 of the question IDs (for those who answered) were missing in Question Tab. So I added those Question IDs text manually as below. 

This is working perfectly for me.  Try with excel first and change the source to SQL. 

Ques.PNG

Anonymous
Not applicable
Author

Thanks a lot @santhiqlik  but I'm running the personal edition so I would be thankful if you could show me what you did here in screenshots.

 

much appreciated Smiley Happy

santhiqlik
Creator
Creator

Here you go.. 

SurveyViz.PNG                                  

SurveyLoadscript.PNG

Anonymous
Not applicable
Author

Thank you @santhiqlik but unfortunately still the question text is not appearing Smiley Sad 

I'll send you the script I wrote for you to check.