<?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: Variable for dynamic set analysis string does not work. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82680#M13540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am seeing 2 when i opened up your application. Is 2 not what you expect to see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193027_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Feb 2018 01:23:06 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-02-11T01:23:06Z</dc:date>
    <item>
      <title>Variable for dynamic set analysis string does not work.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82677#M13537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to use the dynamic set analysis string in my expression. When it is hard coded, it works fine. See below.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Disease&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Disease&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Disease]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Disease&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;When I use a variable (sa_string)to generate a dynamic set analysis string in my expression, it does not work even though&amp;nbsp; the dynamic set analysis string, it is the same as hard coded, but still not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Disease2&lt;/SPAN&gt;)=0,'', &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Disease&lt;/SPAN&gt;,1,'NOT')=0,'{&amp;lt;PatientID = p({&amp;lt;Disease = p(Disease)&amp;gt;})&amp;gt;}',&lt;BR /&gt; '{&amp;lt;PatientID = p({&amp;lt;Disease = p(Disease)&amp;gt;})-p({NOT&amp;lt;[Disease]=p({NOT}Disease)&amp;gt;}'&lt;BR /&gt; )) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(sa_string)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; PatientID) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sample attached&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Longmatch &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 14:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82677#M13537</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2018-02-09T14:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for dynamic set analysis string does not work.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82678#M13538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The content within the branches of your variable is not the same as in your working expression and I think this syntax is wrong. For example if I take the last part of your variable and compare it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;{&amp;lt;PatientID = p({&amp;lt;Disease = p(Disease)&amp;gt;})-p({NOT&amp;lt;[Disease]=p({NOT}Disease)&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Disease&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Disease&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Disease]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Disease&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which meant that &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientID&lt;/SPAN&gt; is missing there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 15:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82678#M13538</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-02-09T15:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for dynamic set analysis string does not work.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82679#M13539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, it does not matter whether PatietnID is in the set analysis string even though I don't know the reason. Please refer to the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 16:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82679#M13539</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2018-02-09T16:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for dynamic set analysis string does not work.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82680#M13540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am seeing 2 when i opened up your application. Is 2 not what you expect to see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193027_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 01:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82680#M13540</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-11T01:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for dynamic set analysis string does not work.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82681#M13541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked the dynamic set analysis string, I did not enter correct set analysis string when items in both listboxes are selected. Sorry.&lt;/P&gt;&lt;P&gt;By the way, the following two set analysis strings return the same results.&lt;/P&gt;&lt;P&gt;{&amp;lt;PatientID = p({&amp;lt;Disease = p(Disease)&amp;gt;})&amp;gt;}&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;STRONG&gt;PatientID&lt;/STRONG&gt; = p({&amp;lt;Disease = p(Disease)&amp;gt;}&lt;STRONG&gt;PatientID&lt;/STRONG&gt;)&amp;gt;} &lt;/P&gt;&lt;P&gt;You use the first one, but most p() functions used in set analysis include field name. Does that make any difference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Longmatch&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 12:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82681#M13541</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2018-02-11T12:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for dynamic set analysis string does not work.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82682#M13542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Today they both work the same way and there should be no difference between the two ways of writing this expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 14:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-dynamic-set-analysis-string-does-not-work/m-p/82682#M13542</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-11T14:13:35Z</dc:date>
    </item>
  </channel>
</rss>

