<?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 of Values based on fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777701#M275667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow the attached application. I think it will meet your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Koushik Banerjee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2015 05:05:02 GMT</pubDate>
    <dc:creator>koushik_btech20</dc:creator>
    <dc:date>2015-01-13T05:05:02Z</dc:date>
    <item>
      <title>Sum of Values based on fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777695#M275661</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;I have a list of values on the basis of product name, as mentioned below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I need a sum of values in a table box when I select any one product in list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: I select ABC1 in a list box then the result should be &lt;STRONG&gt;"9" &lt;/STRONG&gt;in table box and only show ABC1 not ABC1-00 and ABC1-01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample Data,&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 139px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 72pt;" width="96"&gt;Product Name&lt;/TD&gt;&lt;TD style="width: 32pt;" width="43"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;ABC1&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;ABC1-00&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;ABC1-01&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;CDE1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;CDE1-00&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;CDE1-01&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Required Output,&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 120pt;" width="160"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 72pt;" width="96"&gt;Product Name&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;ABC1&lt;/TD&gt;&lt;TD align="right"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a same way, when I select CDE1, then the result should be &lt;STRONG&gt;"9". &lt;/STRONG&gt;All the time I need to show only one value and remaining values should be hide(Ex. ABC1-00, and ABC1-01).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can consider, ABC1 as a child, ABC1-00 as a mother, and ABC1-01 as a father, same things for CDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 02:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777695#M275661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-13T02:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Values based on fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777696#M275662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a column named ParentProduct in the load that trims off the "-XX", then you can simply display a chart that does sum based on the ParentProduct as dimension.&amp;nbsp; When you create expression Sum(Value), use a little set analysis instead:&amp;nbsp;&amp;nbsp; =sum({1}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will show calculation based on ParentProduct, no matter what user selects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 02:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777696#M275662</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2015-01-13T02:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Values based on fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777697#M275663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Step 1:&lt;/P&gt;&lt;P&gt;Create a List Box with the following expression: =if (len(ProductName)=4, ProductName)&lt;/P&gt;&lt;P&gt;Step 2: Create a Variable without definition just name it vProductSearch&lt;/P&gt;&lt;P&gt;Step 3: Assign a Trigger to the ProductName, so that when Selected it assigns the following value to the variable vProductSearch&lt;/P&gt;&lt;P&gt;=only(ProductName) &amp;amp; '*'&lt;/P&gt;&lt;P&gt;Step 4: Create a Straight Table dimension Product Name and in the expression this value:&lt;/P&gt;&lt;P&gt;sum( { &amp;lt;ProductName= {'$(vProductSearch)'} &amp;gt;} Value )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy Qliking&lt;/P&gt;&lt;P&gt;Attached Document and Some Screen Shot:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SC_148167.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75157_SC_148167.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 03:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777697#M275663</guid>
      <dc:creator />
      <dc:date>2015-01-13T03:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Values based on fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777698#M275664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible to share me sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to trim in this way, but it is not working,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trim('-00') as ParentProduct,&lt;/P&gt;&lt;P&gt;Trim(ProductName) as ParentProduct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 04:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777698#M275664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-13T04:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Values based on fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777699#M275665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are working fine, but in your table sample all the fileds are going to be show, however, i need only ABC1 and Value 9 nothing else. please share me updated sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 04:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777699#M275665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-13T04:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Values based on fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777700#M275666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductName&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ProductName&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,'-',1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ParentProduct&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM .........&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 04:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777700#M275666</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2015-01-13T04:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Values based on fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777701#M275667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow the attached application. I think it will meet your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Koushik Banerjee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 05:05:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777701#M275667</guid>
      <dc:creator>koushik_btech20</dc:creator>
      <dc:date>2015-01-13T05:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Values based on fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777702#M275668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like in attached qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 05:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777702#M275668</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-01-13T05:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Values based on fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777703#M275669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sales:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;ProductName, Value&lt;/P&gt;&lt;P&gt;ABC1, 2&lt;/P&gt;&lt;P&gt;ABC1-00, 3&lt;/P&gt;&lt;P&gt;ABC1-01 ,4&lt;/P&gt;&lt;P&gt;CDE1 ,1&lt;/P&gt;&lt;P&gt;CDE1-00 ,5&lt;/P&gt;&lt;P&gt;CDE1-01 ,3&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;groupTotals:&lt;/P&gt;&lt;P&gt;load ProductName, left(ProductName,4) as GroupName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value as GroupValue &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then make the list box on GroupName&amp;nbsp; , the &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;straight table is based on GroupName and expression sum(GroupValue) , &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;thats it, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;if you want to place detailed table box, then you can place ProductName, Value to see how all these is associated by Qview automatically&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 05:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777703#M275669</guid>
      <dc:creator />
      <dc:date>2015-01-13T05:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Values based on fields</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777704#M275670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For what it's worth......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 05:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-Values-based-on-fields/m-p/777704#M275670</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2015-01-13T05:13:36Z</dc:date>
    </item>
  </channel>
</rss>

