Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

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

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