<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Parameterized variable for set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006258#M341763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Indicator={"=chr(39) &amp;amp; SubField('$(eIndicatorSelectionsArray)','|',$1) &amp;amp; chr(39)"}&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you used your expression within a table-chart and left the label for the expression blank you could see how qv interpreted the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Dec 2015 10:37:58 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-12-31T10:37:58Z</dc:date>
    <item>
      <title>Parameterized variable for set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006256#M341761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build a parameterized variable that produces a different set analysis filter for a bunch of straight table expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the literal expression I start with:&lt;/P&gt;&lt;P&gt;=ONLY({&amp;lt;Indicator={'Maximum Vacuum (Postop)'}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use $ substitution:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=ONLY({$(vtest(1))} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but get nulls in the chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition of vtest: &lt;/P&gt;&lt;P&gt;&amp;lt;Indicator={' &amp;amp; chr(39) &amp;amp; SubField('$(eIndicatorSelectionsArray)','|',$1) &amp;amp; chr(39) &amp;amp; '}&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to troubleshoot, I put quotes around the expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;='ONLY({$(vtest(1))} Value)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;then the result in the chart matches the original expression text: &lt;SPAN style="font-size: 13.3333px;"&gt;ONLY({&amp;lt;Indicator={'Maximum Vacuum (Postop)'}&amp;gt;} Value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;so the SubField function and $Expansion are working fine.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone see what I'm missing?&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;-Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 00:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006256#M341761</guid>
      <dc:creator>kswindlehurst</dc:creator>
      <dc:date>2015-12-31T00:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterized variable for set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006257#M341762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somehow it's an expansion issue I guess. May be missing quotes in variable declaration or improper '='. Could you share your sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 10:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006257#M341762</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-12-31T10:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterized variable for set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006258#M341763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Indicator={"=chr(39) &amp;amp; SubField('$(eIndicatorSelectionsArray)','|',$1) &amp;amp; chr(39)"}&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you used your expression within a table-chart and left the label for the expression blank you could see how qv interpreted the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 10:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006258#M341763</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-31T10:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterized variable for set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006259#M341764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can create a parameterized variable for the expression you have written and use it in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9045"&gt;Variables with Parameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this may be useful for you, observe the variables in the variable overview window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 11:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006259#M341764</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2015-12-31T11:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterized variable for set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006260#M341765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A good technique to debug these rather comlplex substitutions is to simulate them by hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'courier new', courier;"&gt;=ONLY({$(vtest(1))} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with vtest containing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;lt;Indicator={' &amp;amp; chr(39) &amp;amp; SubField('$(eIndicatorSelectionsArray)','|',$1) &amp;amp; chr(39) &amp;amp; '}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and nothing else, first expands into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'courier new', courier;"&gt;=ONLY({&amp;lt;Indicator={' &amp;amp; chr(39) &amp;amp; SubField('Some&lt;SPAN style="color: #3d3d3d;"&gt;|&lt;/SPAN&gt;string&lt;SPAN style="color: #3d3d3d;"&gt;|&lt;/SPAN&gt;that&lt;SPAN style="color: #3d3d3d;"&gt;|&lt;/SPAN&gt;doesnt&lt;SPAN style="color: #3d3d3d;"&gt;|&lt;/SPAN&gt;really&lt;SPAN style="color: #3d3d3d;"&gt;|&lt;/SPAN&gt;matter','|',1) &amp;amp; chr(39) &amp;amp; '}&amp;gt;} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;which isn't really a regular set analysis spec. The quotes turn it into a mess. Marcus has a good suggestion, but I think that this vtest content may work even better (no double quote pairs):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;lt;Indicator={"$(=SubField('$(eIndicatorSelectionsArray)','|',$1))"}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Peter&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PS Sorry about the font size, but I couldn't get the examples to stand out and stay on the same line at the same time...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 16:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006260#M341765</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-31T16:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterized variable for set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006261#M341766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kiran,&lt;/P&gt;&lt;P&gt;I already have a parameterized variable defined: vtest(&lt;EM&gt;i&lt;/EM&gt;) &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The problem seems to be a scope\evaluation issue.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 20:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006261#M341766</guid>
      <dc:creator>kswindlehurst</dc:creator>
      <dc:date>2015-12-31T20:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterized variable for set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006262#M341767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Peter,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;The problem seems to be a scope\evaluation order issue.&amp;nbsp; &lt;/SPAN&gt;To get the variable to reevaluate the parameter each time it's called, I can't have an = starting the variable definition.&amp;nbsp; But I do still need to evaluate the SubField function somewhere, which means the evaluation command has to be at least a level above i.e. exactly like your last suggestion, a $(=expression) surrounding a $(substitution).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 21:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006262#M341767</guid>
      <dc:creator>kswindlehurst</dc:creator>
      <dc:date>2015-12-31T21:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterized variable for set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006263#M341768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct analysis. you're on to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck, and enjoy QlikView and the Qlik community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jan 2016 02:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parameterized-variable-for-set-analysis/m-p/1006263#M341768</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-01T02:18:57Z</dc:date>
    </item>
  </channel>
</rss>

