<?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: Duplicates data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Duplicates-data/m-p/920442#M318939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect Sunny !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2015 16:46:02 GMT</pubDate>
    <dc:creator>guillaume_gorli</dc:creator>
    <dc:date>2015-07-29T16:46:02Z</dc:date>
    <item>
      <title>Duplicates data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicates-data/m-p/920440#M318937</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 am working with data for wich i have duplicates informations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields of the database being : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date as extraction date&lt;/P&gt;&lt;P&gt;part_no as part number&lt;/P&gt;&lt;P&gt;cost as unit cost&lt;/P&gt;&lt;P&gt;bin as physical localisation&lt;/P&gt;&lt;P&gt;Qty as quantity in stock&lt;/P&gt;&lt;P&gt;Future Usage as quantity identified to be consummed&lt;/P&gt;&lt;P&gt;Family as a specific category&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94432_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Issue is that field "Future Usage" is linked to the part number and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;not to the bin location. For instance &lt;/SPAN&gt;5 units of part number A are identified to be consummed in total (not 10) although 5 units are in stock in total (2+3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Target is to extract from the database and value the "available stock value" which means basically Sum (Qty) - Num ([Future Usage]) * num (cost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First i managed to gather all the informations i need in a chart using the field "part_no" as a key using the expression (Num (TotalQty) - Num ([Future Usage]))*Num (cost) to identify the available stock value :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/94443_Capture.JPG" style="height: 123px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works fine when building a chart using field "part_no" as a key but i cannot make it using a criteria like field "Date" :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i need to produce would be a simple chart showing :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Total stock value&lt;/LI&gt;&lt;LI&gt;Total stock value for family BLUE using set analysis&lt;/LI&gt;&lt;LI&gt;Total available stock value&lt;/LI&gt;&lt;LI&gt;Total available stock value using set analysis&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/94444_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with the formulas for the available stock value as the formulas (Num (TotalQty) - Num ([Future Usage]))*Num (cost) is not working at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/94445_Capture.JPG" style="height: 249px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;For those who wants to help, i attach qvw as well as excel test database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 16:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicates-data/m-p/920440#M318937</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2015-07-29T16:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicates data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicates-data/m-p/920441#M318938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&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/94454_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Available Stock Valu Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr((Num(TotalQty) - Num([Future Usage])) * Only(cost), part_no))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stock Available Value BLUE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr((Only({$ &amp;lt;Family = {BLUE}&amp;gt;} TotalQty) - Only({$ &amp;lt;Family = {BLUE}&amp;gt;}[Future Usage])) * Only({$ &amp;lt;Family = {BLUE}&amp;gt;}cost), part_no))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 16:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicates-data/m-p/920441#M318938</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-29T16:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicates data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicates-data/m-p/920442#M318939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect Sunny !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 16:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicates-data/m-p/920442#M318939</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2015-07-29T16:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicates data</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicates-data/m-p/920443#M318940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem. I am glad I was able to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 16:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicates-data/m-p/920443#M318940</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-29T16:48:50Z</dc:date>
    </item>
  </channel>
</rss>

