Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
shyamcharan
Creator III
Creator III

Sets with multiple fields in the condition using variable

Hi Experts,

How can I include multiple fields in the sets using the variable?

I am trying the below but it is not working.

Sum({<$(vStaffOfficerfields)>}ResponseMin)/Sum({<$(vStaffOfficerfields)>}ResponseCase)

vStaffOfficerfields = 'InternalStaff,ExternalStaff,Contractors,Executives,NonExecutives,OutsideStaff'

InternalStaff,ExternalStaff,Contractors,Executives,NonExecutives,OutsideStaff are fields with different staff names.


I am trying to create a summary value to ignore all the selections made on these staff fields. However, since the number of fields are more, i am trying to put them in a variable and call them through the variable for easy maintenance.

Can anyone suggest how can I get this correct?

Thanks in advance.

Regards,

Shyam.

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

Hi,

try to remove the single quote and check it. It will show the error line, just ignore it..

Capture.JPG

View solution in original post

3 Replies
Anonymous
Not applicable

Try add "Total" after sum (total.

settu_periasamy
Master III
Master III

Hi,

try to remove the single quote and check it. It will show the error line, just ignore it..

Capture.JPG

shyamcharan
Creator III
Creator III
Author

Thanks settu.