<?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 Sum of quantity based on relations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747149#M266607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to add the quantity of ProductSKU and ChildSKU fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example (real scenario):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;relations.xlsx file consist on all the parent and child relations.&lt;/P&gt;&lt;P&gt;In relations.xlsx file, threre is a ChildSKU = "NI-MF-006" with having 7 ParentsSKU, such as illustrated below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 220pt;" width="293"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; width: 167pt;" width="222"&gt;relations.xlsx&lt;/TD&gt;&lt;TD style="width: 53pt;" width="71"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt;"&gt;parentSKU&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;"&gt;ChildSKU&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt;"&gt;NI-70701&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt;"&gt;NI-70701-ZZ&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701-ZZ1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701-ZZ2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-006-ZZ1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-R6501-Gadsden35-MF-006-Set3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-R6501-MF-006-Set2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-00623&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;salesYTD2014_testing.xlsx file consist on quantity of each individual items (parent and child) such as illustrated below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 272px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; width: 146pt;" width="194"&gt;prod_sku&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 59pt;" width="78"&gt;sum(quantity)&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;540&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701-ZZ&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701-ZZ1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;58&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701-ZZ2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-006-ZZ1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;141&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-R6501-Gadsden35-MF-006-Set3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;227&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-R6501-MF-006-Set2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;247&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-00623&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;82&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. relations.xlsx file consist on relations&lt;/P&gt;&lt;P&gt;2. salesYTD2014_testing.xlsx file consist on quantity&lt;/P&gt;&lt;P&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;Required Output:&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum of quantity must be sum of all the ParentSKU and ChildSKU in against of NI-MF-006 such as given below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 96pt;" width="128"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; width: 48pt;" width="64"&gt;prod_sku&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 48pt;" width="64"&gt;sumofquantity&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1338&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Kindly find attached files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 00:27:30 GMT</pubDate>
    <dc:creator>engishfaque</dc:creator>
    <dc:date>2015-02-05T00:27:30Z</dc:date>
    <item>
      <title>Sum of quantity based on relations</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747149#M266607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to add the quantity of ProductSKU and ChildSKU fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example (real scenario):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;relations.xlsx file consist on all the parent and child relations.&lt;/P&gt;&lt;P&gt;In relations.xlsx file, threre is a ChildSKU = "NI-MF-006" with having 7 ParentsSKU, such as illustrated below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 220pt;" width="293"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; width: 167pt;" width="222"&gt;relations.xlsx&lt;/TD&gt;&lt;TD style="width: 53pt;" width="71"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt;"&gt;parentSKU&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;"&gt;ChildSKU&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt;"&gt;NI-70701&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt;"&gt;NI-70701-ZZ&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701-ZZ1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701-ZZ2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-006-ZZ1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-R6501-Gadsden35-MF-006-Set3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-R6501-MF-006-Set2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl67" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-00623&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;salesYTD2014_testing.xlsx file consist on quantity of each individual items (parent and child) such as illustrated below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 272px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; width: 146pt;" width="194"&gt;prod_sku&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 59pt;" width="78"&gt;sum(quantity)&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;540&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701-ZZ&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701-ZZ1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;58&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-70701-ZZ2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-006-ZZ1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;141&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-R6501-Gadsden35-MF-006-Set3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;227&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-R6501-MF-006-Set2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;247&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-00623&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;82&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. relations.xlsx file consist on relations&lt;/P&gt;&lt;P&gt;2. salesYTD2014_testing.xlsx file consist on quantity&lt;/P&gt;&lt;P&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;Required Output:&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum of quantity must be sum of all the ParentSKU and ChildSKU in against of NI-MF-006 such as given below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 96pt;" width="128"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl65" height="20" style="height: 15.0pt; width: 48pt;" width="64"&gt;prod_sku&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 48pt;" width="64"&gt;sumofquantity&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="xl66" height="20" style="height: 15.0pt; border-top: none;"&gt;NI-MF-006&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1338&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Kindly find attached files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 00:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747149#M266607</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-02-05T00:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of quantity based on relations</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747150#M266608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share script, dimension and expression; I'm using QlikView Personal Edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 00:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747150#M266608</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-02-05T00:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of quantity based on relations</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747151#M266609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need your help, please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need any clarification, just tell me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 07:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747151#M266609</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-02-05T07:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of quantity based on relations</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747152#M266610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ishfaque,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you get out put as:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 96pt;" width="128"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl65" height="20" style="border: 0px solid black; border-image: none; width: 48pt; height: 15pt;" width="64"&gt;prod_sku&lt;/TD&gt;&lt;TD class="xl65" style="border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-color: black black black currentColor; border-image: none; width: 48pt;" width="64"&gt;sumofquantity&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl66" height="20" style="border-width: medium 0px 0px; border-style: none solid solid; border-color: currentColor black black; border-image: none; height: 15pt;"&gt;NI-MF-006&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-width: medium 0px 0px medium; border-style: none solid solid none; border-color: currentColor black black currentColor; border-image: none;"&gt;1338&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 8 child entries so output should be 8*540 = 4320&lt;/P&gt;&lt;P&gt;Please correct me if I am wrong.&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>Thu, 05 Feb 2015 07:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747152#M266610</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-02-05T07:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of quantity based on relations</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747153#M266611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is what you are but maybe:&lt;/P&gt;&lt;P&gt;Relations:&lt;/P&gt;&lt;P&gt;LOAD ParentSKU,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ChildSKU,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ratio&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;relationship.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is composite);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp; ChildSKU,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ChildSKU as ParentSKU,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Ratio&lt;/P&gt;&lt;P&gt;Resident Relations;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prod_sku as ParentSKU,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quantity&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;salesYTD2014_testing.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [YTD-2014]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NI-MF-006 as the ChildSKU it gives the desired result&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 08:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747153#M266611</guid>
      <dc:creator />
      <dc:date>2015-02-05T08:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of quantity based on relations</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747154#M266612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jyothish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to correct you here, actually it is not about multiplication, It's all about addition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, please go to "relations.xlsx" file and apply filter in a file,&lt;/P&gt;&lt;P&gt;Search "NI-MF-006", you will find that "NI-MF-006" ParentSKU names exactly given below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 293px;"&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/77170_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, you need to go in "salesYTD2014_testing.xlsx" file,&lt;/P&gt;&lt;P&gt;Where you need to apply filters and then go to column "type" and select "Order" and then go to column "prod_sku" and search individually each name, let's suppose you search "NI-MF-006" it's sum of quantity is "540", same as for "NI-70701", it's sum of quantity is "13" and same as for others to repeat the steps. Here is sum of quantity for each items, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 205pt;" width="272"&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/77174_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required output is field "prod_sku" consist on "NI-MF-006" and field "sum of quantity" consist on "1338". It is the sum of all the items including parents and child.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need any more clarification please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 08:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747154#M266612</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-02-05T08:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of quantity based on relations</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747155#M266613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Tyler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not working such as i required, but 3re items quantity is coming right and remaining are missing. Please refer to attached image for more clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="img1.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/77175_img1.png" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 08:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747155#M266613</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-02-05T08:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of quantity based on relations</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747156#M266614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ishfaque,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this is what you are looking for:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;BR /&gt; type,&lt;BR /&gt; prod_sku as ParentSKU,&lt;BR /&gt; quantity&lt;BR /&gt;FROM&lt;BR /&gt;[Copy of salesYTD2014_testing.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [YTD-2014]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Relations:&lt;BR /&gt;LOAD ParentSKU, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ChildSKU, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ratio&lt;BR /&gt;FROM&lt;BR /&gt;[Copy of relationship.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is composite);&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp; ChildSKU,&lt;BR /&gt;&amp;nbsp; ChildSKU as ParentSKU,&lt;BR /&gt; Ratio&lt;/P&gt;&lt;P&gt;Resident Relations;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In front end create a straight chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ({&amp;lt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #008000; font-size: 8pt;"&gt;type&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #4d0000; font-size: 8pt;"&gt;'Order'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;STRONG style=": ; color: #008000; font-size: 8pt;"&gt;quantity&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&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>Thu, 05 Feb 2015 08:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747156#M266614</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-02-05T08:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of quantity based on relations</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747157#M266615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select NI-MF-006 as child SKU, don't select anything on ParentSKU, it will give you the right result&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/77177_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 08:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747157#M266615</guid>
      <dc:creator />
      <dc:date>2015-02-05T08:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of quantity based on relations</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747158#M266616</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Relation:&lt;/P&gt;&lt;P&gt;LOAD ParentSKU, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ChildSKU, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ratio, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;relationship.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is composite);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction:&lt;/P&gt;&lt;P&gt;LOAD type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prod_sku as ChildSKU, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quantity&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;salesYTD2014_testing.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [YTD-2014]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable: vParentSKU - =Chr(39) &amp;amp; Concat(ParentSKU, Chr(39) &amp;amp;&amp;nbsp; ',' &amp;amp; Chr(39)) &amp;amp; Chr(39)&lt;/P&gt;&lt;P&gt;In Chart:&lt;/P&gt;&lt;P&gt;Dimension: ChildSKU&lt;/P&gt;&lt;P&gt;Expression: =Sum({&amp;lt;ChildSKU+={$(=vValidChildSKU)}&amp;gt;} quantity) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 08:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747158#M266616</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-02-05T08:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of quantity based on relations</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747159#M266617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jyothish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks, problem has been resolved with your and @tylor cool solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 08:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-of-quantity-based-on-relations/m-p/747159#M266617</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-02-05T08:50:59Z</dc:date>
    </item>
  </channel>
</rss>

