<?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: Distribute KG by Percentage for multiple dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distribute-KG-by-Percentage-for-multiple-dimensions/m-p/1509908#M750370</link>
    <description>&lt;P&gt;QlikView associates on all fields with the same name, unless you specifically rename them.&lt;/P&gt;&lt;P&gt;So here factory is included in the association, but for 1116 factory = 1 on Data &amp;amp; 3 on Category by vari and Size tabs.&lt;/P&gt;&lt;P&gt;You can try changing these;&lt;/P&gt;&lt;P&gt;vari:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; factory &lt;STRONG&gt;as factory_vari&lt;/STRONG&gt;, &amp;nbsp;&lt;/P&gt;&lt;P&gt;And;&lt;/P&gt;&lt;P&gt;size:&lt;BR /&gt;LOAD Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; factory &lt;STRONG&gt;as factory_size&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Which looks to me like it works, but not sure what effect that would have on the rest of your model or the other ways you may wish to apportion.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2018 16:20:19 GMT</pubDate>
    <dc:creator>chrismarlow</dc:creator>
    <dc:date>2018-11-20T16:20:19Z</dc:date>
    <item>
      <title>Distribute KG by Percentage for multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Distribute-KG-by-Percentage-for-multiple-dimensions/m-p/1509837#M750367</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I want to distribute kilograms on multiple distribution percentages of different dimensions (Categories, Size, ...).&lt;/P&gt;&lt;P&gt;The distribution has multiple tables with different agregations, so I think one way is to have "island" tables and multiply with the related data. But didn't work.&lt;/P&gt;&lt;P&gt;I've attached an excel with some example data.&lt;/P&gt;&lt;P&gt;1 Example: Kilograms&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1Kg.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/655i4222A46BC2400E81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1Kg.PNG" alt="1Kg.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2 Example: % Distribution by Category&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2distrib.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/656iBF21B584E67E1877/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2distrib.PNG" alt="2distrib.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3 Example: % Distribution by Size&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3 size.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/658iD4ED733DB49EEB0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3 size.PNG" alt="3 size.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4 Example: Kilograms Distributed&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4 kg final.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/654i3E0F33DBEBD260B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4 kg final.PNG" alt="4 kg final.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distribute-KG-by-Percentage-for-multiple-dimensions/m-p/1509837#M750367</guid>
      <dc:creator>cristian_av</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Distribute KG by Percentage for multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Distribute-KG-by-Percentage-for-multiple-dimensions/m-p/1509876#M750368</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Now the synthetic keys in this might need some thought, but I don't think you need to use a data island;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20181120_1.png" style="width: 669px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/669iEDCC77DA6E0AAAE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="20181120_1.png" alt="20181120_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;P&gt;Script in case you cant open the attachment;&lt;/P&gt;&lt;DIV&gt;data:&lt;BR /&gt;LOAD Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prod_codigo,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; factory,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; espe,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vari,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KG&lt;BR /&gt;FROM&lt;BR /&gt;[Distribution Example.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Data);&lt;/DIV&gt;&lt;DIV&gt;factory:&lt;BR /&gt;LOAD Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; factory,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; espe,&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Distrib% as factory_dist&lt;BR /&gt;FROM&lt;BR /&gt;[Distribution Example.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Category by Factory]);&lt;/DIV&gt;&lt;DIV&gt;vari:&lt;BR /&gt;LOAD Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; factory,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; espe,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vari,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Category,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Distrib% as vari_dist&lt;BR /&gt;FROM&lt;BR /&gt;[Distribution Example.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Category by vari]);&lt;/DIV&gt;&lt;DIV&gt;size:&lt;BR /&gt;LOAD Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; factory,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; espe,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vari,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Distrib% as size_dist&lt;BR /&gt;FROM&lt;BR /&gt;[Distribution Example.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Size);&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Nov 2018 15:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distribute-KG-by-Percentage-for-multiple-dimensions/m-p/1509876#M750368</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-20T15:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Distribute KG by Percentage for multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Distribute-KG-by-Percentage-for-multiple-dimensions/m-p/1509896#M750369</link>
      <description>It works for code 1113 and 1148 and don't work for code 1116 and 1117.&lt;BR /&gt;In the original data, it works for all.. Not sure why.</description>
      <pubDate>Tue, 20 Nov 2018 15:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distribute-KG-by-Percentage-for-multiple-dimensions/m-p/1509896#M750369</guid>
      <dc:creator>cristian_av</dc:creator>
      <dc:date>2018-11-20T15:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Distribute KG by Percentage for multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Distribute-KG-by-Percentage-for-multiple-dimensions/m-p/1509908#M750370</link>
      <description>&lt;P&gt;QlikView associates on all fields with the same name, unless you specifically rename them.&lt;/P&gt;&lt;P&gt;So here factory is included in the association, but for 1116 factory = 1 on Data &amp;amp; 3 on Category by vari and Size tabs.&lt;/P&gt;&lt;P&gt;You can try changing these;&lt;/P&gt;&lt;P&gt;vari:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; factory &lt;STRONG&gt;as factory_vari&lt;/STRONG&gt;, &amp;nbsp;&lt;/P&gt;&lt;P&gt;And;&lt;/P&gt;&lt;P&gt;size:&lt;BR /&gt;LOAD Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; factory &lt;STRONG&gt;as factory_size&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Which looks to me like it works, but not sure what effect that would have on the rest of your model or the other ways you may wish to apportion.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 16:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distribute-KG-by-Percentage-for-multiple-dimensions/m-p/1509908#M750370</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-20T16:20:19Z</dc:date>
    </item>
  </channel>
</rss>

