<?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: Summation of two sets of Data based on variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summation-of-two-sets-of-Data-based-on-variable/m-p/1145608#M912007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunately i can't post any of the real data as it is confidential and sensitive ... but i can try to recreate a sample set of information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2016 21:15:04 GMT</pubDate>
    <dc:creator>rbpeterson2</dc:creator>
    <dc:date>2016-06-07T21:15:04Z</dc:date>
    <item>
      <title>Summation of two sets of Data based on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-of-two-sets-of-Data-based-on-variable/m-p/1145606#M912005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two sets of data:&lt;/P&gt;&lt;P&gt;1) Static Table loaded through editor&lt;/P&gt;&lt;P&gt;2) Table loaded through editor and used for selection purposes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my sheet, I would like to show a bar chart (bar chart 1; shown as percentages) depicting the historical data elements (table 1) and then a separate bar chart (bar chart 2; shown as numeric values) depicting the historical elements (table 1) along with the summation of the selected items (table 2) to the historical data.&amp;nbsp; The historical data is controlled from the selection of a dropdown variable using the qsVariable (found in Qlik Branch).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example table 1:&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;Name&lt;BR /&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;Value&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;Dollars&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Name 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Value 1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Name 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Value 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Name 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Value 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Name 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Value 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;700&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example table 2 (after selections):&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;Value&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;UPB&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Value 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Value 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Value 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User selects Name 1 from the dropdown; bar chart 1 responds with showing of the measure Type with the values correctly. (Example would show Type 1 @ 25%, Type 2 @ 75%)&lt;/P&gt;&lt;P&gt;Bar chart 2, however, adds the total of the selections across each type instead of the matching type.&amp;nbsp; (Example shows: Type 1 historical at 100 and New at 200 (the sum of Type 1 from Table 1 (100) plus Type 1 from the selection (100)) but also shows Type 2 of historical of 300 and New at 400 (it's pulling the sum of the selection into Type 2 even though it's only Type 1 data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot:&lt;/P&gt;&lt;P&gt;Left Side is Historical / Right is combination of Historical &amp;amp; Selected+Historical&lt;/P&gt;&lt;P&gt;Right side should only be showing increase in Value 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-06-07_154658.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127162_2016-06-07_154658.png" style="height: 190px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;For my "With Selection" expression, I'm using:&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;Institution={'$(vBankName)'},[Loan Type Flag 1]=&amp;gt;}[Dollar of Loans]) + Sum(UPB))/1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vBankName is my variable selected in the dropdown that ties to the Institution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example information/data:&lt;/P&gt;&lt;P&gt;Institution = Name&lt;/P&gt;&lt;P&gt;Loan Type Flag 1 = Value&lt;/P&gt;&lt;P&gt;Dollar of Loans = Value&lt;/P&gt;&lt;P&gt;UPB = UPB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, it's taking the selected UPB dollars and add it across all measures rather than the singular value 1.&amp;nbsp; How do I get it so it only adds to Value 1?&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/Summation-of-two-sets-of-Data-based-on-variable/m-p/1145606#M912005</guid>
      <dc:creator>rbpeterson2</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Summation of two sets of Data based on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-of-two-sets-of-Data-based-on-variable/m-p/1145607#M912006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried hard, but I can't follow your description (the low resolution screen shot and the renaming of sample fields between description and expression doesn't help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post a small sample QVF?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 21:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-of-two-sets-of-Data-based-on-variable/m-p/1145607#M912006</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-07T21:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Summation of two sets of Data based on variable</title>
      <link>https://community.qlik.com/t5/QlikView/Summation-of-two-sets-of-Data-based-on-variable/m-p/1145608#M912007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunately i can't post any of the real data as it is confidential and sensitive ... but i can try to recreate a sample set of information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 21:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summation-of-two-sets-of-Data-based-on-variable/m-p/1145608#M912007</guid>
      <dc:creator>rbpeterson2</dc:creator>
      <dc:date>2016-06-07T21:15:04Z</dc:date>
    </item>
  </channel>
</rss>

