<?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 calculate average value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-average-value/m-p/185092#M49719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;Orders:&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;MemberId,EnterDate&lt;BR /&gt;1,'2010/01/01'&lt;BR /&gt;2,'2010/01/02'&lt;BR /&gt;3,'2010/01/03'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Transaction:&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;MemberId,ChargeDate,Amount&lt;BR /&gt;&lt;STRONG&gt;1,'2010/01/01',100&lt;BR /&gt;2,'2010/01/02',200&lt;/STRONG&gt;&lt;BR /&gt;1,'2010/02/01',300&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;I want to calculate the average Amount by EnterDate, it looks like this:&lt;/P&gt;&lt;P&gt;Month, Total Members, Average Amount&lt;/P&gt;&lt;P&gt;1, 3, 300/3&lt;/P&gt;&lt;P&gt;You could find there is no transaction for memberid 3, but it still need to be calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it? I want to to show the data in the pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 03:03:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-26T03:03:56Z</dc:date>
    <item>
      <title>How to calculate average value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-average-value/m-p/185092#M49719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;Orders:&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;MemberId,EnterDate&lt;BR /&gt;1,'2010/01/01'&lt;BR /&gt;2,'2010/01/02'&lt;BR /&gt;3,'2010/01/03'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Transaction:&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;MemberId,ChargeDate,Amount&lt;BR /&gt;&lt;STRONG&gt;1,'2010/01/01',100&lt;BR /&gt;2,'2010/01/02',200&lt;/STRONG&gt;&lt;BR /&gt;1,'2010/02/01',300&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;I want to calculate the average Amount by EnterDate, it looks like this:&lt;/P&gt;&lt;P&gt;Month, Total Members, Average Amount&lt;/P&gt;&lt;P&gt;1, 3, 300/3&lt;/P&gt;&lt;P&gt;You could find there is no transaction for memberid 3, but it still need to be calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it? I want to to show the data in the pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 03:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-average-value/m-p/185092#M49719</guid>
      <dc:creator />
      <dc:date>2011-01-26T03:03:56Z</dc:date>
    </item>
    <item>
      <title>How to calculate average value</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-average-value/m-p/185093#M49720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isaac,&lt;/P&gt;&lt;P&gt;Attached should be a solution. I've created the required values for the calculation in the load script instead of the frontend as the EnterDate and ChargeDate cause a conflict when trying to use one or the other as a base for any table.&lt;/P&gt;&lt;P&gt;Once the data is in via the script then it should be straight forward to use the values as required in a Pivot, chart or table.&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 10:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-average-value/m-p/185093#M49720</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-01-26T10:00:05Z</dc:date>
    </item>
  </channel>
</rss>

