<?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: Using Function in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42720#M777129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;That was a copy paste error,&lt;/P&gt;&lt;P&gt;This gives me result as '0', Still does not work properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 10:41:25 GMT</pubDate>
    <dc:creator>chhavi376</dc:creator>
    <dc:date>2018-05-02T10:41:25Z</dc:date>
    <item>
      <title>Using Function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42718#M777127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=sum({&amp;lt;pat_id =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;$(=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Replace( &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;vInclude,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;'P({&amp;lt;TypeDesc={'&amp;amp;chr(39)&amp;amp;TypeDesc&amp;amp;chr(39)&amp;amp;'},'&amp;amp;'Value={'&amp;amp;chr(39)&amp;amp;'1'&amp;amp;chr(39)&amp;amp;'}&amp;gt;}pat_id)',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;'P({&amp;lt;TypeDesc={'&amp;amp;chr(39)&amp;amp;TypeDesc&amp;amp;chr(39)&amp;amp;'},'&amp;amp;'Value={'&amp;amp;chr(39)&amp;amp;'*'&amp;amp;chr(39)&amp;amp;'}&amp;gt;}pat_id)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I wanted to use a function in &lt;/SPAN&gt;set&lt;SPAN style="color: #000000;"&gt; analysis (Please refer to the expression above)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;But it seems that the function is not rightly calculated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;is there a way to fix this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Chhavi&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42718#M777127</guid>
      <dc:creator>chhavi376</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42719#M777128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chavi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a guess, you're missing the starting / ending bracket for the set analysis expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;=sum({&amp;lt;pat_id =&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;$(=&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;Replace(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;vInclude,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;'P({&amp;lt;TypeDesc={'&amp;amp;chr(39)&amp;amp;TypeDesc&amp;amp;chr(39)&amp;amp;'},'&amp;amp;'Value={'&amp;amp;chr(39)&amp;amp;'1'&amp;amp;chr(39)&amp;amp;'}&amp;gt;}pat_id)',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;'P({&amp;lt;TypeDesc={'&amp;amp;chr(39)&amp;amp;TypeDesc&amp;amp;chr(39)&amp;amp;'},'&amp;amp;'Value={'&amp;amp;chr(39)&amp;amp;'*'&amp;amp;chr(39)&amp;amp;'}&amp;gt;}pat_id)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;STRONG&gt;"}&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;Felipe.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 10:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42719#M777128</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-05-02T10:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42720#M777129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;That was a copy paste error,&lt;/P&gt;&lt;P&gt;This gives me result as '0', Still does not work properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 10:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42720#M777129</guid>
      <dc:creator>chhavi376</dc:creator>
      <dc:date>2018-05-02T10:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42721#M777130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See what your expression is returning, put a table chart and paste the expression, to check whats being evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201244" alt="sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201244_sample.png" style="height: 496px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a side note, im assuming that the expression you're using with the identation is getting a false error, this expression worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;pat_id =&lt;/P&gt;&lt;P&gt;{"$(=Replace(vInclude,&lt;/P&gt;&lt;P&gt;'P({&amp;lt;TypeDesc={'&amp;amp;chr(39)&amp;amp;TypeDesc&amp;amp;chr(39)&amp;amp;'},'&amp;amp;'Value={'&amp;amp;chr(39)&amp;amp;'1'&amp;amp;chr(39)&amp;amp;'}&amp;gt;}pat_id)',&lt;/P&gt;&lt;P&gt;'P({&amp;lt;TypeDesc={'&amp;amp;chr(39)&amp;amp;TypeDesc&amp;amp;chr(39)&amp;amp;'},'&amp;amp;'Value={'&amp;amp;chr(39)&amp;amp;'*'&amp;amp;chr(39)&amp;amp;'}&amp;gt;}pat_id)'))"}&lt;/P&gt;&lt;P&gt;&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and gave me the picture result, with vInclude having value 1 and using the bellow code for dummy data:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15252587149486963" jivemacro_uid="_15252587149486963"&gt;
&lt;P&gt;load * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;pat_id,TypeDesc,Value&lt;/P&gt;
&lt;P&gt;x,A,1&lt;/P&gt;
&lt;P&gt;2,B,10&lt;/P&gt;
&lt;P&gt;1,C,100&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 10:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42721#M777130</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-05-02T10:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42722#M777131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to show what exactly are you trying to accomplish?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 11:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42722#M777131</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-02T11:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42723#M777132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I am attaching the test App&lt;/P&gt;&lt;P&gt;PFB the example to explain the functionality of 'Exp2':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When nothing is selected:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" height="120" src="https://community.qlik.com/legacyfs/online/201251_1.PNG" style="height: 120px; width: 817.582px;" width="818" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the moment I select anything from Include/Exclude Filters, the value in Exp1 which was appearing befor the selection of that particular filter should appear in Exp2&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.PNG" class="jive-image image-2" height="164" src="https://community.qlik.com/legacyfs/online/201253_2.PNG" style="height: 164px; width: 776.183px;" width="776" /&gt;&lt;/P&gt;&lt;P&gt;now if i select anything from Exclude (Say cardiac) the value in Exp2 should be '-1' (Exp1 for cardiac in the above screenshot)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the column 'Test' in the set analysis used in Exp2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 11:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42723#M777132</guid>
      <dc:creator>chhavi376</dc:creator>
      <dc:date>2018-05-02T11:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42724#M777133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this sort of what you are looking to do?&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/201247_Capture.PNG" style="height: 189px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 11:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Function-in-Set-Analysis/m-p/42724#M777133</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-02T11:51:57Z</dc:date>
    </item>
  </channel>
</rss>

