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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
rathorep
Contributor III
Contributor III

Assign multiple values to variable in chart

Hello All,

I am creating a new variable in chart directly and want to assign multiple values like 

V_Username= 'cat','Bat','dog','tat'

how i can do this. kindly help!

3 Replies
eds_fb17
Contributor III
Contributor III

Hello you can use function ValueList:
v_Username=ValueList('cat','Bat','dog','tat')

Ksrinivasan
Specialist
Specialist

hi,

 

instead of variables you can try with set


Sum({$<Category={'CAT','BAT','DOG','TAT'}>}[Delivery Qty])

Regards,

ksrinivasan

Ksrinivasan
Specialist
Specialist

hi,

1. you can Set in before script starting below:

Set vDefaultCat = 'cat','Bat','dog','tat';

 

2. Use this defaultcat at chat expression like:

Sum({$<aaaaa={$(vDefaultCat )}>}ddddd)

 

result will be from Default category list.

Ksrinivasan.