<?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 How to write this pivot table expression in script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-this-pivot-table-expression-in-script/m-p/256009#M1185644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load datas with HIERACHRY LOAD, then I build a pivot table with the parent and the childs as dimension. The expression is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(piece)&lt;/P&gt;&lt;P&gt;* if(not IsNu&lt;/P&gt;&lt;P&gt;ll(child3), sum(total &amp;lt;child2&amp;gt; if(IsNull(child3), piece)),1) &lt;/P&gt;&lt;P&gt;* if(not IsNull(child2), sum(total &amp;lt;child1&amp;gt; if(IsNull(child2), piece)),1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I got the right piece in dependence of the ancestors. The deficit is, that I have to add all the childs in dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I search for a solution, that I only give the parent and a list of all childs in one field with the correct piece number. I try it with and combination of HIERARCHY LOAD and HIERARCHYBELOANGSTO LOAD, but I loose then items or I hadn't the correct number of pieces. &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Vicky&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image_jpeg.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/7929_image_jpeg.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2011 10:15:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-18T10:15:13Z</dc:date>
    <item>
      <title>How to write this pivot table expression in script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-this-pivot-table-expression-in-script/m-p/256009#M1185644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load datas with HIERACHRY LOAD, then I build a pivot table with the parent and the childs as dimension. The expression is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(piece)&lt;/P&gt;&lt;P&gt;* if(not IsNu&lt;/P&gt;&lt;P&gt;ll(child3), sum(total &amp;lt;child2&amp;gt; if(IsNull(child3), piece)),1) &lt;/P&gt;&lt;P&gt;* if(not IsNull(child2), sum(total &amp;lt;child1&amp;gt; if(IsNull(child2), piece)),1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I got the right piece in dependence of the ancestors. The deficit is, that I have to add all the childs in dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I search for a solution, that I only give the parent and a list of all childs in one field with the correct piece number. I try it with and combination of HIERARCHY LOAD and HIERARCHYBELOANGSTO LOAD, but I loose then items or I hadn't the correct number of pieces. &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Vicky&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image_jpeg.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/7929_image_jpeg.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 10:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-this-pivot-table-expression-in-script/m-p/256009#M1185644</guid>
      <dc:creator />
      <dc:date>2011-10-18T10:15:13Z</dc:date>
    </item>
  </channel>
</rss>

