<?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: Set Analysis Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390033#M145546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not yet Jagan....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Apr 2013 12:00:38 GMT</pubDate>
    <dc:creator>tmumaw</dc:creator>
    <dc:date>2013-04-23T12:00:38Z</dc:date>
    <item>
      <title>Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390028#M145541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning everyone.&amp;nbsp; Sort of confused on this one.&amp;nbsp; The "if" statement works, but the set analysis does not.&amp;nbsp; Does anyone see anything that would make it not work?&amp;nbsp; Would love to use set analysis&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;sum(if([Profit Center] = [Hist Profit Center] and YTDFlag = '1',LID))&amp;nbsp;&amp;nbsp; (WORKS)&lt;/SPAN&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;[Profit Center]&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = {“&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray;"&gt;$(=trim([Hist Profit Center]))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;”},&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;FISPD&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;YTDFlag&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = {'1'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;[LID]&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) &lt;STRONG&gt; (DON'T WORK)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sum({&amp;lt;[Profit Center] = {[Hist Profit Center]},FISPD=,YTDFlag = {1}&amp;gt;} [LID])&amp;nbsp; &lt;STRONG&gt;(DON'T WORK)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 11:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390028#M145541</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2013-04-23T11:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390029#M145542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="color: blue;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;[Profit Center]&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray;"&gt;[Hist Profit Center]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;FISPD&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;YTDFlag&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = {'1'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;[LID]&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 11:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390029#M145542</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-04-23T11:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390030#M145543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis doesn't work if you compare a field value with another field value, the right expression must be a value (a number, string or variable) or at least an aggregation of a field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 11:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390030#M145543</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-04-23T11:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390031#M145544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks....but that does not work either.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 11:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390031#M145544</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2013-04-23T11:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390032#M145545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="color: blue;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;[Profit Center]&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;={$(=Concat(DISTINCT &lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray;"&gt;[Hist Profit Center]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;, ','))}&lt;SPAN style="color: black;"&gt;&lt;SPAN style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;FISPD&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;YTDFlag&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = {'1'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;[LID]&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/docs/DOC-4021" title="http://community.qlik.com/docs/DOC-4021"&gt;http://community.qlik.com/docs/DOC-4021&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 11:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390032#M145545</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-04-23T11:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390033#M145546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not yet Jagan....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 12:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390033#M145546</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2013-04-23T12:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390034#M145547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN style="color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;[Profit Center]&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = {“=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray;"&gt;[Hist Profit Center] = [Profit Center]&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black;"&gt;”},&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;FISPD&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;YTDFlag&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt; = {'1'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon;"&gt;[LID]&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;) &lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Else upload your qvw file.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Kaushik Solanki&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 12:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390034#M145547</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-23T12:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390035#M145548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexandros is right, set analysis will only get evaluated once, before the object is calculated. It's not possible to obtain different values for different rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work if there is a single possible value for Hist Profit Center&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum({&amp;lt;[Profit Center] = {'$(=only([Hist Profit Center]))'},FISPD=,YTDFlag = {1}&amp;gt;} [LID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else, you need to do something like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum({&amp;lt;FISPD=,YTDFlag = {1}&amp;gt;} if(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;[Profit Center] = [Hist Profit Center],&lt;/SPAN&gt;[LID]))&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 12:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390035#M145548</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2013-04-23T12:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390036#M145549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Kaushik....but Nope.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 12:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390036#M145549</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2013-04-23T12:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390037#M145550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to "copy" selections from one field to another, or sum only those records which have value of [Profit Center] equal to [Hist Profit Center] (which is what the If does)? The latter is undoable with set analysis, as far as I know.&lt;/P&gt;&lt;P&gt;(You are not comparing values, but defining selection for [Profit Center], so if one value in [Profit Center] exists both with same [Hist Profit Center] and with a different [Hist Profit Center], there is no way to define a selection on [Profit Center] that would filter out only the values you want).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 13:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390037#M145550</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2013-04-23T13:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390038#M145551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that you have unique key for the table&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Arial; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: black; font-family: Arial;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-family: Arial; color: maroon;"&gt;[UniqueKeyField]&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: black; font-family: Arial;"&gt; = {“=&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #000000; font-family: Arial;"&gt;&lt;EM style="color: gray;"&gt;[Hist Profit Center] = &lt;STRONG style="background-color: #ffffff; color: #000000; font-family: Arial;"&gt;&lt;EM style="color: gray;"&gt;[Profit Center]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; color: black; font-family: Arial;"&gt;”},&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-family: Arial; color: maroon;"&gt;FISPD&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: black; font-family: Arial;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-family: Arial; color: maroon;"&gt;YTDFlag&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: black; font-family: Arial;"&gt; = {'1'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-family: Arial; color: maroon;"&gt;[LID]&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: black; font-family: Arial;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: black; font-family: Arial;"&gt;Hope it helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: black; font-family: Arial;"&gt;Celambarasan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 13:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Expression/m-p/390038#M145551</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-04-23T13:49:51Z</dc:date>
    </item>
  </channel>
</rss>

