<?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 Set Analysis ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/729536#M261371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created front End Expression in Set Analysis but I need to create in Back End ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(DR_CR='D',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(OPENING)+&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TD_DOC_DT={"&amp;lt;=$(=max(TD_DOC_DT))"},TD_DOC_DT_Year=,TD_DOC_DT_Month=,TD_DOC_DRCR_FLAG={'D'}&amp;gt;}TD_DOC_AMT)-&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TD_DOC_DT={"&amp;lt;=$(=max(TD_DOC_DT))"},TD_DOC_DT_Year=,TD_DOC_DT_Month=,TD_DOC_DRCR_FLAG={'C'}&amp;gt;}TD_DOC_AMT),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TD_DOC_DT={"&amp;lt;=$(=max(TD_DOC_DT))"},TD_DOC_DT_Year=,TD_DOC_DT_Month=,TD_DOC_DRCR_FLAG={'D'}&amp;gt;}TD_DOC_AMT)-&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TD_DOC_DT={"&amp;lt;=$(=max(TD_DOC_DT))"},TD_DOC_DT_Year=,TD_DOC_DT_Month=,TD_DOC_DRCR_FLAG={'C'}&amp;gt;}TD_DOC_AMT)-sum(OPENING))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 06:28:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-30T06:28:05Z</dc:date>
    <item>
      <title>Set Analysis ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/729536#M261371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created front End Expression in Set Analysis but I need to create in Back End ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(DR_CR='D',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(OPENING)+&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TD_DOC_DT={"&amp;lt;=$(=max(TD_DOC_DT))"},TD_DOC_DT_Year=,TD_DOC_DT_Month=,TD_DOC_DRCR_FLAG={'D'}&amp;gt;}TD_DOC_AMT)-&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TD_DOC_DT={"&amp;lt;=$(=max(TD_DOC_DT))"},TD_DOC_DT_Year=,TD_DOC_DT_Month=,TD_DOC_DRCR_FLAG={'C'}&amp;gt;}TD_DOC_AMT),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TD_DOC_DT={"&amp;lt;=$(=max(TD_DOC_DT))"},TD_DOC_DT_Year=,TD_DOC_DT_Month=,TD_DOC_DRCR_FLAG={'D'}&amp;gt;}TD_DOC_AMT)-&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TD_DOC_DT={"&amp;lt;=$(=max(TD_DOC_DT))"},TD_DOC_DT_Year=,TD_DOC_DT_Month=,TD_DOC_DRCR_FLAG={'C'}&amp;gt;}TD_DOC_AMT)-sum(OPENING))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 06:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/729536#M261371</guid>
      <dc:creator />
      <dc:date>2014-10-30T06:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/729537#M261372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET vMAX&amp;nbsp; = max(TD_DOC_DT);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DR_CR,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TD_DOC_DRCR_FLAG,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(DR_CR='D',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum(OPENING) +&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT ) ) -&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT ) ),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'D', TD_DOC_AMT) )-&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum( If( TD_DOC_DT &amp;lt;= $(vMAX) and TD_DOC_DRCR_FLAG = 'C', TD_DOC_AMT) )-&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum(OPENING))&amp;nbsp; as SumField&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Source&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Group BY DR_CR,TD_DOC_DRCR_FLAG;//According to you use the fields&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and rest of the SET filter expression in the front end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;TD_DOC_DT_Year=,TD_DOC_DT_Month=&amp;gt; } SumField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:- SET expression not able to use in the load script but you can use only the SUM aggregate function and then rest of the SET expression in the front end.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 06:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/729537#M261372</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-10-30T06:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/729538#M261373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis will work only in front end. Will not work in the back end script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 07:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/729538#M261373</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2014-10-30T07:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis ?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/729539#M261374</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;Helen SET expression not worked in the load script you have to use only SUM function in the load and then rest of the SET expression in the front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 07:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/729539#M261374</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-10-30T07:07:14Z</dc:date>
    </item>
  </channel>
</rss>

