<?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: Move from Sum(If) to sum(set analysis) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Move-from-Sum-If-to-sum-set-analysis/m-p/560352#M480539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you could use the Lotnumber in the place of PrimaryKeyFieldName&lt;/P&gt;&lt;P&gt;will look like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Lotnumber&lt;/SPAN&gt;={"=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;INB_SIBSilo = CI_SILOmschrijving&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"}&amp;gt;} CI_SC_Hoeveelheid)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Nov 2013 13:16:35 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2013-11-21T13:16:35Z</dc:date>
    <item>
      <title>Move from Sum(If) to sum(set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Move-from-Sum-If-to-sum-set-analysis/m-p/560349#M480536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to resolve the following issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data model is complex and at some stage I need to sum received qty's (table 1) look at the applied corrections (table 2) and compare the 2 combined with the qty that was booked in the financial system (table 3)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Table 1 and table 2 are related by Lotnumber, so I can sum qty received and qty corrected by lot. That works fine on the straight forward sum(). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my detail overview of the receipt I want to show all silos in which the product was received. The corrections are recorded by silo too.&lt;/P&gt;&lt;P&gt;The SIBSilo is the destination Silo of the receipt. the CI_SILOmschrijving is the SILO on which the correction was applied. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; if (INB_SIBSilo = CI_SILOmschrijving, sum(CI_SC_Hoeveelheid),0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The qty is correct, but it does not sum() on the totalby lotnumber. My guess is that a sum with set analysis will sum correctly and show the total line sum as well. The only problem is that I am struggling a bit with the syntax of the set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with the syntax for the set analysis for this sum-if so I can replace it in my detail report?? &lt;/P&gt;&lt;P&gt;Thanks for your help in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 12:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Move-from-Sum-If-to-sum-set-analysis/m-p/560349#M480536</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2013-11-21T12:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Move from Sum(If) to sum(set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Move-from-Sum-If-to-sum-set-analysis/m-p/560350#M480537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do it has any primary key to identify the single combination of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;INB_SIBSilo and CI_SILOmschrijving?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if so&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;PrimaryKeyFieldName={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;INB_SIBSilo = CI_SILOmschrijving&lt;/SPAN&gt;"}&amp;gt;} CI_SC_Hoeveelheid)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 12:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Move-from-Sum-If-to-sum-set-analysis/m-p/560350#M480537</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-11-21T12:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Move from Sum(If) to sum(set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Move-from-Sum-If-to-sum-set-analysis/m-p/560351#M480538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 2 tables from which the fields come from are linked by a field called Lotnumber.&lt;/P&gt;&lt;P&gt;The INB_ field represents the SILO from which the production qty is taken. The CI_SIL* field holds the Silo on which the correction was made. The detail report is sorted by product,lotnumber and Silo, the summed qty's have to be [production qty] and [correction qty]. Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 13:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Move-from-Sum-If-to-sum-set-analysis/m-p/560351#M480538</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2013-11-21T13:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Move from Sum(If) to sum(set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Move-from-Sum-If-to-sum-set-analysis/m-p/560352#M480539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you could use the Lotnumber in the place of PrimaryKeyFieldName&lt;/P&gt;&lt;P&gt;will look like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Lotnumber&lt;/SPAN&gt;={"=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;INB_SIBSilo = CI_SILOmschrijving&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"}&amp;gt;} CI_SC_Hoeveelheid)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 13:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Move-from-Sum-If-to-sum-set-analysis/m-p/560352#M480539</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-11-21T13:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Move from Sum(If) to sum(set analysis)</title>
      <link>https://community.qlik.com/t5/QlikView/Move-from-Sum-If-to-sum-set-analysis/m-p/560353#M480540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately this does not work. You may not fully understand what I am trying to achieve.&lt;/P&gt;&lt;P&gt;See example picture below: As you can see my the product/lot and silo have qty ordered. for location 'Kaai 01' there was a correction. Now instead of having that shown on every line, I just want to have the qty corrected displayed on the line where silo = CI SILOmschrijving. I had the qty corrected in a set analysis function, but as soon as I would take out the Lotnumber filter to look at the entire table it would not show the qty corrected anymore. Using the sum-if would mean the column would not show a total qty corrected anymore.&amp;nbsp; Hope this explains what I mean better....&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pict_explain.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/49373_Pict_explain.jpg" style="width: 620px; height: 347px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 13:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Move-from-Sum-If-to-sum-set-analysis/m-p/560353#M480540</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2013-11-21T13:38:56Z</dc:date>
    </item>
  </channel>
</rss>

