<?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 cost distribution using aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/cost-distribution-using-aggr/m-p/1153970#M376796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to create a cost distribution but aggregating the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached my workings but I can't quite figure out the formula to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that in this file I have done a resident load to show you what I am trying to achieve but in reality this isn't feasible, it needs to work from formula on the raw data somehow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just can not sus it out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 06:54:45 GMT</pubDate>
    <dc:creator>adamdavi3s</dc:creator>
    <dc:date>2016-07-27T06:54:45Z</dc:date>
    <item>
      <title>cost distribution using aggr</title>
      <link>https://community.qlik.com/t5/QlikView/cost-distribution-using-aggr/m-p/1153970#M376796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to create a cost distribution but aggregating the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached my workings but I can't quite figure out the formula to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that in this file I have done a resident load to show you what I am trying to achieve but in reality this isn't feasible, it needs to work from formula on the raw data somehow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just can not sus it out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 06:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cost-distribution-using-aggr/m-p/1153970#M376796</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-07-27T06:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: cost distribution using aggr</title>
      <link>https://community.qlik.com/t5/QlikView/cost-distribution-using-aggr/m-p/1153971#M376797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to aggregate your cost in the advanced aggregation and perform a distinct count in the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;=aggr( round(sum([TOTAL COST])/500)*500 ,CUSTOMER)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;=count(DISTINCT CUSTOMER) / count(DISTINCT total CUSTOMER)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;100% &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;27%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;500&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;36%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1500&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;27%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;9%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 20:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cost-distribution-using-aggr/m-p/1153971#M376797</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-07-27T20:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: cost distribution using aggr</title>
      <link>https://community.qlik.com/t5/QlikView/cost-distribution-using-aggr/m-p/1153972#M376798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got so close to that yesterday! Not sure why I couldn't figure that one out,&amp;nbsp; thank you swuehl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 06:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cost-distribution-using-aggr/m-p/1153972#M376798</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-07-28T06:25:30Z</dc:date>
    </item>
  </channel>
</rss>

