<?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: Averages Per Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Averages-Per-Dimension/m-p/366071#M493882</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;please find attached another file which shows the issue I'm dealing with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically my source consists of invoices related to shipments, and each shipment has a time "registration" (time A and time B) which is registred at the "invoice" level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the file, you see I have an average leadtime (based on the formula provided by you) of 5.43, while the average leadtime per shipment would be 5 (leadtime A + leadtime B divided by 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is caused by the fact that shipment A has more invoices, and thus will give more weight to the average equation, while it "should" be independent of the number of invoices in each shipment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marthein&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2012 13:40:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-25T13:40:54Z</dc:date>
    <item>
      <title>Averages Per Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Averages-Per-Dimension/m-p/366067#M493876</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;please find attached an example of averages I'm trying to calculate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, I have two different shipments with different number of invoices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the table "Leadtime A-B", I'd like to know the average leadtime of all shipments &lt;/P&gt;&lt;P&gt;1. Average of the lead time between A and B per shipment&lt;/P&gt;&lt;P&gt;E.g. avg leadtime A-B for shipment A =(2+3+5+1+1)/5=12/5&lt;/P&gt;&lt;P&gt;E.g. avg leadtime A-B for shipment B=(1+2)/2=3/2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Average of these leadtimes in total&lt;/P&gt;&lt;P&gt;avgleadtime A + avgleadtime B / total number of shipments = ((12/5)+(3/2))/2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If more shipments are selected, then this should be calculated automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to have it in an expression and over the current selections. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marthein&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 14:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averages-Per-Dimension/m-p/366067#M493876</guid>
      <dc:creator />
      <dc:date>2012-04-24T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Averages Per Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Averages-Per-Dimension/m-p/366068#M493877</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;Hope attached file helps you.&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>Tue, 24 Apr 2012 14:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averages-Per-Dimension/m-p/366068#M493877</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-04-24T14:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Averages Per Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Averages-Per-Dimension/m-p/366069#M493879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the quick reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see on total you have an average of 2.43 while I would expect an average of 2.45 (an average of 2.4 and 2.5). This 2.45 is exactly the number I'm after. Can you help me with it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marthein&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 14:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averages-Per-Dimension/m-p/366069#M493879</guid>
      <dc:creator />
      <dc:date>2012-04-24T14:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Averages Per Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Averages-Per-Dimension/m-p/366070#M493881</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;I think it is not possible, you cannot modify row total, you can do total by expression or sum of rows in straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you sum Total by expression, it do by&amp;nbsp; (17)/2&amp;nbsp; This is one option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other option is Sum of rows, it just sums up the values.&amp;nbsp; (2.4 + 2.5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand.&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>Tue, 24 Apr 2012 15:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averages-Per-Dimension/m-p/366070#M493881</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-04-24T15:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Averages Per Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Averages-Per-Dimension/m-p/366071#M493882</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;please find attached another file which shows the issue I'm dealing with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically my source consists of invoices related to shipments, and each shipment has a time "registration" (time A and time B) which is registred at the "invoice" level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the file, you see I have an average leadtime (based on the formula provided by you) of 5.43, while the average leadtime per shipment would be 5 (leadtime A + leadtime B divided by 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is caused by the fact that shipment A has more invoices, and thus will give more weight to the average equation, while it "should" be independent of the number of invoices in each shipment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marthein&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 13:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Averages-Per-Dimension/m-p/366071#M493882</guid>
      <dc:creator />
      <dc:date>2012-04-25T13:40:54Z</dc:date>
    </item>
  </channel>
</rss>

