<?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? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate/m-p/212790#M66669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I used named cal, could paste the code directly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Feb 2011 13:42:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-12T13:42:23Z</dc:date>
    <item>
      <title>How to calculate?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate/m-p/212788#M66667</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 those figures:&lt;/P&gt;&lt;P&gt;MemberId, Visitdate, VisitMinutes&lt;/P&gt;&lt;P&gt;1 ,2010-1-1,10&lt;/P&gt;&lt;P&gt;1,2010-1-2,11&lt;/P&gt;&lt;P&gt;2,2010-1-1,10&lt;/P&gt;&lt;P&gt;2,2010-1-3,10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use pivot table to show the visit minutes of the first date by MemberId&lt;/P&gt;&lt;P&gt;It looks like this:&lt;/P&gt;&lt;P&gt;MemberId, TotalMins, FirstMins&lt;/P&gt;&lt;P&gt;1,21,10&lt;/P&gt;&lt;P&gt;2,20,10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use expression to calculate the First Mins?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 10:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate/m-p/212788#M66667</guid>
      <dc:creator />
      <dc:date>2011-02-11T10:29:48Z</dc:date>
    </item>
    <item>
      <title>How to calculate?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate/m-p/212789#M66668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;firstsortedvalue(VisitMinutes,Visitdate)&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Feb 2011 02:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate/m-p/212789#M66668</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-02-12T02:09:16Z</dc:date>
    </item>
    <item>
      <title>How to calculate?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate/m-p/212790#M66669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I used named cal, could paste the code directly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Feb 2011 13:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate/m-p/212790#M66669</guid>
      <dc:creator />
      <dc:date>2011-02-12T13:42:23Z</dc:date>
    </item>
    <item>
      <title>How to calculate?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate/m-p/212791#M66670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;But if I have another dimension upon the memberid like region,&lt;/P&gt;&lt;P&gt;load * Inline&lt;BR /&gt;[Region,MemberId,VisitDate,VisitMins&lt;BR /&gt;Brazil,1,2010-2-1,10&lt;BR /&gt;Brazil,1,2010-2-2,20&lt;BR /&gt;Brazil,2,2010-2-2,20&lt;BR /&gt;France,3,2010-2-1,3&lt;BR /&gt;France,4,2010-2-3,5&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;I want to show the total visit minutes of the first date by MemberId on the region dimension:&lt;/P&gt;&lt;P&gt;It looks like this:&lt;/P&gt;&lt;P&gt;Region, totalMins, TotalFirstMins&lt;/P&gt;&lt;P&gt;Brazil, 50, 10+20&lt;/P&gt;&lt;P&gt;France, 8, 3+5&lt;/P&gt;&lt;P&gt;How to achieve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Feb 2011 06:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate/m-p/212791#M66670</guid>
      <dc:creator />
      <dc:date>2011-02-13T06:03:04Z</dc:date>
    </item>
    <item>
      <title>How to calculate?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate/m-p/212792#M66671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum(aggr(firstsortedvalue(VisitMins,VisitDate),Region,MemberId))&lt;/P&gt;&lt;P&gt;The script is cut and paste from your post. The chart is a straight table with Region as a dimension. First expression is sum(VisitMins). Second is the expression above.&lt;/P&gt;&lt;P&gt;Edit: Oh, and in the real world, you'll want to use a VisitTimestamp instead of a VisitDate unless it is physically impossible for a member to have two visits on the same date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 20:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate/m-p/212792#M66671</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-02-14T20:39:46Z</dc:date>
    </item>
  </channel>
</rss>

