<?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: Help with Set Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381650#M421103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arvind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help and quick revert. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, this will not work as I cannot modify the data model (I am playing support role) and modifying the data model will be out of scope for now. Hence, trying to attempt this with the set expression.&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raajesh N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2017 07:30:28 GMT</pubDate>
    <dc:creator>raajeshn</dc:creator>
    <dc:date>2017-10-31T07:30:28Z</dc:date>
    <item>
      <title>Help with Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381647#M421100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request your help on the below scenario. Data set being used is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KPI, Year, PKey, Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2017, 1, 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2016, 1, 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2014, 1, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Benchmark, , 1, 25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2017, 2, 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2016, 2, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2015, 2, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Benchmark, , 2, 40&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..and the expected output is Sum of Benchmark based on the Actual for a Specific Year. For Ex, for Year 2016 - Expected Sum of Benchmark is 65 and expected sum of Benchmark for 2015 is 40 (25 is not counted as we dont have actual for 2015). Full Expected table is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="32" width="64"&gt;Year&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Actual&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Expected Benchmark&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;2014&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;50&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;2015&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;10&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;2016&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;60&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;70&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample file is attached where I have attempted the above but no luck. Any help is highly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raajesh N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 06:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381647#M421100</guid>
      <dc:creator>raajeshn</dc:creator>
      <dc:date>2017-10-31T06:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381648#M421101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Is as Below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KPI, Year, PKey, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2017, 1, 30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2016, 1, 40&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2014, 1, 50&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Benchmark, , 1, 25&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2017, 2, 40&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2016, 2, 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actual, 2015, 2, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Benchmark, , 2, 40&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;FinalData:&lt;/P&gt;&lt;P&gt;LOAD KPI,Year,PKey,Value Resident Data where WildMatch(KPI,'Actual');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join(FinalData)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master:&lt;/P&gt;&lt;P&gt;LOAD Distinct PKey,Sum(Value) as Benchmark Resident Data where WildMatch(KPI,'Benchmark') Group by PKey ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arvind Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 07:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381648#M421101</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2017-10-31T07:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381649#M421102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;add this to Your Script&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0000ff;"&gt;Join&lt;/SPAN&gt; &lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;PKey&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ValueB&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Table&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Where&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;KPI&lt;/SPAN&gt; = 'Benchmark'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;See Attachment.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 07:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381649#M421102</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-10-31T07:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381650#M421103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arvind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help and quick revert. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, this will not work as I cannot modify the data model (I am playing support role) and modifying the data model will be out of scope for now. Hence, trying to attempt this with the set expression.&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raajesh N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 07:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381650#M421103</guid>
      <dc:creator>raajeshn</dc:creator>
      <dc:date>2017-10-31T07:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381651#M421104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&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;Thanks for your help and quick revert.&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;Unfortunately, this will not work as I cannot modify the data model (I am playing support role) and modifying the data model will be out of scope for now. Hence, trying to attempt this with the set expression.&amp;nbsp; Thanks for your help.&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;Thanks &amp;amp; Regards,&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;Raajesh N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 07:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381651#M421104</guid>
      <dc:creator>raajeshn</dc:creator>
      <dc:date>2017-10-31T07:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381652#M421105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try exp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum(Aggr(NODISTINCT Sum( TOTAL&amp;nbsp; {&amp;lt;KPI={'Benchmark'}&amp;gt;} Value), PKey))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG __jive_id="181576" alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181576_Capture.JPG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 08:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381652#M421105</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-10-31T08:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381653#M421106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use&amp;nbsp; below : &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt; code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Sum(Aggr(NODISTINCT Sum( TOTAL&amp;nbsp; {&amp;lt;KPI={'Benchmark'}&amp;gt;} Value), PKey))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Arvind Patil&lt;/EM&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 08:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381653#M421106</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2017-10-31T08:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381654#M421107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much for the swift response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression worked almost, except that it was showing slightly different numbers. However, I took a cue from your expression and modified it as below which works like a charm. Corrected Expression is as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Sum(Aggr(NODISTINCT Sum({&amp;lt;KPI={'Benchmark'}&amp;gt;} Value), PKey))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Raajesh N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 13:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381654#M421107</guid>
      <dc:creator>raajeshn</dc:creator>
      <dc:date>2017-10-31T13:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381655#M421108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arvind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, as mentioned in the above post for &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;‌, slightly modified version works (which I also see in your attachment &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;, though you have typed the expression from Tresesco as it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Raajesh N &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 14:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Expression/m-p/1381655#M421108</guid>
      <dc:creator>raajeshn</dc:creator>
      <dc:date>2017-10-31T14:04:47Z</dc:date>
    </item>
  </channel>
</rss>

