Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis in Straight Chart

Hello,

Can you use the result of a separate object in set analysis for a straight table ?

I want to show the attendees at various seminars as a percentage of total staff. I have the 'Course Name' as the dimension in the straight table and can calculate the count of attendees no problems. I have used the following set analysis for the percentage calc:

=NUM(count({<ATTENDANCE = {'Compulsory'} >} [EMP NO.]) /

count({<[ACT/INACT] = {'A'}>} [EMP NO.]),

'#,##0.0%')

I get a 100% for all courses as I think it is calculating based on the dimension of course name.

How do I get it calculate on total staff, which I have as a separate text object with the following expression (same as in above set analysis):

count({<[ACT/INACT] = {'A'}>} [EMP NO.])

Thanks

Wayne

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Try with TOTAL keyword Like this,

NUM(

count({<ATTENDANCE = {'Compulsory'} >} [EMP NO.])

/

count({<[ACT/INACT] = {'A'}>}  TOTAL  [EMP NO.]),

'#,##0.0%')

Regards,


Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

3 Replies
SunilChauhan
Champion II
Champion II

NUM(count( {<ATTENDANCE = {'Compulsory'} >} total [EMP NO.]) /

count({<[ACT/INACT] = {'A'}>}  total [EMP NO.]),

'#,##0.0%')

Sunil Chauhan
PrashantSangle

Hi,

Try with TOTAL keyword Like this,

NUM(

count({<ATTENDANCE = {'Compulsory'} >} [EMP NO.])

/

count({<[ACT/INACT] = {'A'}>}  TOTAL  [EMP NO.]),

'#,##0.0%')

Regards,


Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Thanks Max,

Simple as that.