Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to reproduce calculations currently on a spreadsheet into our QlikSense Dashboard
I have a spreadsheet with a number of Survey Questions as Dimensions (Columns) and Survey Answers as Values (rows)
Any help very very welcomed !
Helene
Survey Answer | Survey Counter | Q1 | Q2 | Q3 | ... | Q7 |
---|---|---|---|---|---|---|
Answer 1 | 1 | ABC | Correct | A | 123 | |
Answer 2 | 1 | ABC | Correct | A | 456 | |
Answer 3 | 1 | ABC | B | 456 | ||
Answer 4 | 1 | ABC | C | 456 | ||
Answer 5 | 1 | DEF | Correct | 789 | ||
Answer 6 | 1 | DEF | Correct | 789 | ||
Answer 7 | 1 | DEF | Correct | 456 | ||
Answer 8 | 1 | ABC | Correct | C | 456 | |
Answer 9 | 1 | ABC | False | C | 456 | |
Answer 10 | 1 | DEF | False | C | 456 |
Dear Vineeth
Thank you very much for your help and advice. I want to make sure I have understood your suggestion properly.
Are you suggesting that I should load a separate table that will have each Survey/Question combination as a row ?
Answer 1 Q1 ABC
Answer 1 Q2 Correct
Answer 1 Q3 A
...
Answer 2 Q1 ABC
etc
As I have a number of dashboards preset using all the question as dimensions, I would need to set up this new cross table completely independently for the rest of my data set.
Have I understood this correctly? Thanks Helene
use a crosstable load
Dear Vineeth
Thank you very much for your help and advice. I want to make sure I have understood your suggestion properly.
Are you suggesting that I should load a separate table that will have each Survey/Question combination as a row ?
Answer 1 Q1 ABC
Answer 1 Q2 Correct
Answer 1 Q3 A
...
Answer 2 Q1 ABC
etc
As I have a number of dashboards preset using all the question as dimensions, I would need to set up this new cross table completely independently for the rest of my data set.
Have I understood this correctly? Thanks Helene
Hi,
Use CrossTable() to transform the data and validate the answer and create a flag whether it is correct or not then use this flag in set analysis to get the results.
Regards,
jagan.
Sorry, I do not know how your existing data model is but; CrossTabbing the data will definitely simplify your calculations
Instead of adding individual questions as dimension you can simply drag the Question column and restrict using set analysis or calculated dimensions
Dear Jagan and Vineeth
Thank you very much for both your suggestions. I now have created a cross table and my data looks like this:
SurveyAnswer | Question | Answer | CorrectYorN
Answer 1 | Q1 | ABC | Y
Answer 1 | Q2 | Correct | Y
Answer 1 | Q3 | A | N
Answer 2 | Q1 | ABC | Y
Answer 2 | Q2 |Correct | Y
Answer 2 | Q3 | A | N
....
Answer 7 | Q1 | DEF | N
Answer 7 | Q2 | Correct | Y
Answer 8 | Q1 | ABC | Y
Answer 8 | Q2 | Correct | Y
Answer 8 | Q3 | C | Y
.. etc
In my previous example, the number, the number i was after is the average of those 3 %
So (60+75+57)/3 which is not the same as (6+6+4)/(10+8+7).
I can using the set restrictions to calculate each individual % but I am still unclear how to get a total average as per my definition above using a formula than would span the whole cross table.
Don't I need to still need to store each individual % Correct for Q1, Q2, and Q3 and then average them in a two step process ? Maybe i am confused.
Thanks H