<?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: Sum value dynamically using 2 tables and field value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141564#M890292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pfa the updated application. I have added a straight chart also &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2016 11:34:21 GMT</pubDate>
    <dc:creator>jyothish8807</dc:creator>
    <dc:date>2016-09-05T11:34:21Z</dc:date>
    <item>
      <title>Sum value dynamically using 2 tables and field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141557#M890285</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 two source tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ProjectPhase&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;A1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;A2&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;A3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;..&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Ax&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;B1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;..&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Bx&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Initiate&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Planning&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Execution&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Close&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;.&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with Ax column and Bx column. This X can increase in the time up to 100 and more values. Max value of A and B is the same: e.g. A30, then also B30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid rgb(0, 0, 0); width: 88px; height: 145px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;KPIs&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;x&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with X that can increase up to 100, together with the list of columns at Table1. E.g. Max A is A30, then Max KPI is 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a straight table in Qlikview that put in relation the above two tables in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;KPI&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;B&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7 &lt;EM style="color: #c0c0c0;"&gt;which is Sum(A1) &lt;/EM&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11 &lt;EM style="color: #c0c0c0; font-size: 13.3333px;"&gt;which is Sum(B1) &lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;11 &lt;EM style="color: #c0c0c0; font-size: 13.3333px;"&gt;which is Sum(A2) &lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(B2)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;10 &lt;EM style="color: #c0c0c0; font-size: 13.3333px;"&gt;which is Sum(A3) &lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(B3)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;..&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(A..)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(B..)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;x&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;13 &lt;EM style="color: #c0c0c0; font-size: 13.3333px;"&gt;which is Sum(Ax) &lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;13 &lt;EM style="color: #c0c0c0; font-size: 13.3333px;"&gt;which is Sum(Bx) &lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use the value of KPI fields (1,2,3 ..x) in the Sum expression (e.g. Sum(A$KPI) ..but it's not allowed in the expression )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, If I select one of the ProjectPhase, the sum will change dynamically. E.g. Select "Execution" and get only A=1 and B=4 for KPI = 1 in the above table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141557#M890285</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value dynamically using 2 tables and field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141558#M890286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I completely understand what you are trying to do. May be trim down the sample with expected output in an Excel might be able to give us better directions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Sep 2016 17:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141558#M890286</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-03T17:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value dynamically using 2 tables and field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141559#M890287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created the table1 and table2 in the attached excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the sheet called "qlikview" it's what I want to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bear in mind that I'm trying to use some kind of variable or loop counter to make this working even if the number of Ax, Bx and KPI x will increase. There is always a correlation between these X:&lt;/P&gt;&lt;P&gt;If I have 30 KPIs, it means that I have A1 to A30 and B1 to B30. For each KPI (let's say KPI4), I need to sum the value of all A (let's say A4) and B (let's say B4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the excel, I created an example with 20 A, 20 B and 20 KPIs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2016 11:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141559#M890287</guid>
      <dc:creator />
      <dc:date>2016-09-04T11:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value dynamically using 2 tables and field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141560#M890288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is what you are looking for .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2016 12:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141560#M890288</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2016-09-04T12:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value dynamically using 2 tables and field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141561#M890289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's a really great example. However, this is using a Pivot Table, not a Straight Table. The reason why I need a straight table is because I have some calculation to do on each column (e.g. (A-B)/A) that I cannot do within a Pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to show it in a Straight Table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2016 15:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141561#M890289</guid>
      <dc:creator />
      <dc:date>2016-09-04T15:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value dynamically using 2 tables and field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141562#M890290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2016 19:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141562#M890290</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2016-09-04T19:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value dynamically using 2 tables and field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141563#M890291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a way to display it in a straight table, using a simple set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Label={A}&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Label={B}&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I can use a straight table in spite of a Pivot table!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 07:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141563#M890291</guid>
      <dc:creator />
      <dc:date>2016-09-05T07:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value dynamically using 2 tables and field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141564#M890292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pfa the updated application. I have added a straight chart also &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 11:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141564#M890292</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2016-09-05T11:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum value dynamically using 2 tables and field value</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141565#M890293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! Now also the thread has the final version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everybody!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 14:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-value-dynamically-using-2-tables-and-field-value/m-p/1141565#M890293</guid>
      <dc:creator />
      <dc:date>2016-09-05T14:06:28Z</dc:date>
    </item>
  </channel>
</rss>

