Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help for a QlikView newbie....

I'm trying to manipulate some data and having a little bit of trouble.  I currently have data with several columns, including region (Europe, Asia....etc), question and answer (1 through 5).

What I'm trying to do is get the average answer for all questions from a given region.  For instance, I want to get an average of the ansers for every question in our 'Europe' region.  Can anybody point me in the correct direction on how to do this?  I wanted to create a gauge chart to display the average, but having issues just getting started.

Thanks in advance,

Tim

1 Solution

Accepted Solutions
Not applicable
Author

OK - so you are looking to have multiple gauges, one for each continent?

You can add the continent to the set analysis like so:

    count({<Answer = {'Satisfied'},Continent = {'Asia'}>}Distinct Question)

    /

    count({<Continent = {'Asia'}>}Distinct Question)

As an alternative, you can simply use "count({<answer = {'Satisfied'}>}Distinct Question) / count(Distinct Question)" I suggested in a heavily formatted bar chart.  See Attached !

View solution in original post

12 Replies
sinanozdemir
Specialist III
Specialist III

Hi,

Can you post some sample data?

Thanks

sunny_talwar

So I guess you would want a single gauge chart for each country?

You can create a guage chart with country as your dimension and then use Avg(Answer) as expression and then use trellis option to see a gauge chart for each country.

I hope that make sense.

Best,

Sunny

Not applicable
Author

How many columns you want to show?

Provide a picture of what you are expecting.

Regards,

Anjali Gupta

Not applicable
Author

Thanks Sunny (and everybody else!)  I did set up my Region (country) as the dimension, so at least I was on the right path

What I need to show is the percentage of the answers that are equal to a value -- in this case, "Satisfied".  So I need to find out what percentage of the total number of answers for a Country were reported as "Satisfied".  Can I still do that with just Avg?

Not applicable
Author

Satisfied201405013EnglishGroupAudioConfExternalAsia3278213832SBU3
Satisfied201405013EnglishGroupAudioConfExternalAsia3286480866SBU1
Satisfied201405013EnglishSelfVideoConferencingAsia3278213832SBU3
Satisfied201405013EnglishSelfVideoConferencingAsia3286480866SBU1
Doesnt Meet Needs18698416EnglishGroupAudioConfExternalAsia3534764509SBU2
Doesnt Meet Needs18698416EnglishGroupAudioConfExternalAsia3536532925SBU1
Not applicable
Author

Hello Timothy,

You can accomplish this with set analysis:

assuming fields = answer and ID

count({<answer = {'Satisfied'}>}Distinct ID) / count(Distinct ID)

This will give you percentage of Satisfied vs. Total

MarcoWedel

Hi,

another solution could be to use the display option "circular gauge" in a pivot table:

QlikCommunity_Thread_188279_Pic1.JPG

hope this helps

regards

Marco

Not applicable
Author

Have a look to this blog

Average – Which average?

Not applicable
Author

Hi David,

Thanks for the reply.  I think you've pointed me in the right direction, but I'm worried that my needs might be a little bit more complex (I hope not).  So I do have the "Answer" field, and instead of ID, I think I can use "Question" (there are multiple questions that each user has to answer).  But I want to make sure that I'm only counting the answers that are coming from the Asia region (for this example).

So I need the number of "Satisfied" responses from all users for all questions from the Asia region divided by the total number of questions that were answered in the Asia region.

Does what I'm trying to do make sense?

Thanks again for all of the help so far.

Tim