<?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: Comparing sums from different tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-sums-from-different-tables/m-p/70393#M457974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, but you might be able to try this in addition to &lt;A href="https://community.qlik.com/people/felipedl"&gt;felipedl&lt;/A&gt;‌'s suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(If([Requisition NO GL] = [Requisition NO], [GL ammount]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206135_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2018 13:00:55 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-06-25T13:00:55Z</dc:date>
    <item>
      <title>Comparing sums from different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-sums-from-different-tables/m-p/70391#M457972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have three tables:&lt;/P&gt;&lt;P&gt;Requisitions, chart of account, and GL transactions. ( my document security is on business unit, and I want my managers to see all their requisitions, so I can't play around too much with the model)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="requisition model.png" class="jive-image image-1" src="/legacyfs/online/206067_requisition model.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sum for every Requisition NO the requisition amount, and compare it the amount in the GL matching the Requisition No GL.&lt;/P&gt;&lt;P&gt;Heres the chart expression I'm using to retrieve GL account from a chart that has Requisition dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Requisition NO GL] = p([Requisition NO])&amp;gt;} [GL ammount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is in the Requisition amount chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Requisition tables.png" class="jive-image image-2" src="/legacyfs/online/206068_Requisition tables.png" style="height: 305px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to find in the Requisition amount chart in the GL amount expression for SP-123: 50$&lt;/P&gt;&lt;P&gt;and for SP-ABC: 55$. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have a recommendation on how to get the desired result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 21:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-sums-from-different-tables/m-p/70391#M457972</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2018-06-22T21:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing sums from different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-sums-from-different-tables/m-p/70392#M457973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just change your expression to:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Requisition NO] = p([Requisition NO GL])&amp;gt;} [GL ammount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=sum({&amp;lt;[Requisition NO GL] = p([Requisition NO])&amp;gt;} [GL ammount])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Is getting all possible values (marked in red bellow) twice for each &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;[Requisition NO], &lt;/STRONG&gt;since you have the association in your model &lt;/SPAN&gt;and so doubling your values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Additionally, its also getting the value for SP-789 since it's a possible &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;[Requisition NO] &lt;/STRONG&gt;&lt;/SPAN&gt;value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;IMG __jive_id="206127" alt="sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206127_sample.png" style="height: 496px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 12:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-sums-from-different-tables/m-p/70392#M457973</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-06-25T12:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing sums from different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-sums-from-different-tables/m-p/70393#M457974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, but you might be able to try this in addition to &lt;A href="https://community.qlik.com/people/felipedl"&gt;felipedl&lt;/A&gt;‌'s suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(If([Requisition NO GL] = [Requisition NO], [GL ammount]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206135_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 13:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-sums-from-different-tables/m-p/70393#M457974</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-25T13:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing sums from different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-sums-from-different-tables/m-p/70394#M457975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felip: the expression does not return 50 and 55. Returns 105.&lt;/P&gt;&lt;P&gt;Sunny: That brings back in deed 50 and 55, but where's the 150 for SP-789 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 17:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-sums-from-different-tables/m-p/70394#M457975</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2018-07-03T17:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing sums from different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-sums-from-different-tables/m-p/70395#M457976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that SP-789 doesn't have a link because Business unit is null for SP-789&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/206988_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;May be you will need to rethink the data model to get this requirement done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 23:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-sums-from-different-tables/m-p/70395#M457976</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-04T23:02:23Z</dc:date>
    </item>
  </channel>
</rss>

