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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
felcar2013
Partner - Creator III
Partner - Creator III

Variable with set analysis in script

hi

i have this formula in a chart expression and as i have many of them, i want to create all of them in the script, but i got some problems. The script runs well but i do not get the data in my chart. See please below,

thanks

Expression in Chart

num (count({$<$(vSet), member_Communication_Print_possible={'Yes'}>} Total <$(vTotal)> distinct %x_membermember_ID),'#.##0','.')

Variable in script:

SET TotalPrintMail = 'num(count({@<(=@(vSet)), member_Communication_Print_possible={'Yes'}>} Total <(=@(vTotal))> distinct %x_membermember_ID),'#.##0','.')';

LET TotalPrintMail = Replace(TotalPrintMail,'@','$');

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Don't use quotes around the expression:

SET TotalPrintMail = num (count({$<$(vSet), member_Communication_Print_possible={'Yes'}>} Total <$(vTotal)> distinct %x_membermember_ID),'#.##0','.');


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Not applicable

SET TotalPrintMail = num(count({@<(=@(vSet)), member_Communication_Print_possible={'Yes'}>} Total <(=@(vTotal))> distinct %x_membermember_ID),'#.##0','.');

LET TotalPrintMail1 = Replace(TotalPrintMail,'@','$');

Not applicable

Do like this:

SET var1=  '{$<'&'COUNTRY={"Brazil"}>}';

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Don't use quotes around the expression:

SET TotalPrintMail = num (count({$<$(vSet), member_Communication_Print_possible={'Yes'}>} Total <$(vTotal)> distinct %x_membermember_ID),'#.##0','.');


talk is cheap, supply exceeds demand
felcar2013
Partner - Creator III
Partner - Creator III
Author

thanks, it seems that was the problem