<?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: Calculate average session time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-average-session-time/m-p/718783#M258282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jonathan. Works great! I did it wrong with the aggr() on the outside.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 13:58:34 GMT</pubDate>
    <dc:creator>mr_novice</dc:creator>
    <dc:date>2014-09-17T13:58:34Z</dc:date>
    <item>
      <title>Calculate average session time</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-session-time/m-p/718780#M258279</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;I have a simple table with these columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User, SessionDuration&lt;/P&gt;&lt;P&gt;A, 00:37:01&lt;/P&gt;&lt;P&gt;B, 01:40:02&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a chart that shows the average session time vs the share/proportion of users. Y-axis shows average time and X-axis shows the proportion of users in % like this: 0% 10% 20%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? How? &lt;/P&gt;&lt;P&gt;Thankful for any suggestion..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 11:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-session-time/m-p/718780#M258279</guid>
      <dc:creator>mr_novice</dc:creator>
      <dc:date>2014-09-17T11:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average session time</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-session-time/m-p/718781#M258280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, another approach -&amp;nbsp; I did this in a Straight Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension - User&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;SPAN class="s1"&gt;class&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;avg&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;SubField&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;[Session Duration]&lt;SPAN class="s2"&gt;,':',1)*60+&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;SubField&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;[Session Duration]&lt;SPAN class="s2"&gt;,':',2)),10)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this gives me a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User, Range&lt;/P&gt;&lt;P&gt;A, 90&amp;lt;=x&amp;lt;100&lt;/P&gt;&lt;P&gt;B, 90&amp;lt;=x&amp;lt;100&lt;/P&gt;&lt;P&gt;C, 80&amp;lt;=x&amp;lt;90&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to count the users within each range so I get this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(user), Range&lt;/P&gt;&lt;P&gt;2, 90&amp;lt;=x&amp;lt;100&lt;/P&gt;&lt;P&gt;1, 80&amp;lt;=x&amp;lt;90&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;How can I do this? I have been trying with "aggr"-funtion but I dont get it to work....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-session-time/m-p/718781#M258280</guid>
      <dc:creator>mr_novice</dc:creator>
      <dc:date>2014-09-17T13:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average session time</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-session-time/m-p/718782#M258281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think to do that , your class expression would be the 'calculated dimension' and count(distinct [User]) would be the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When used as a&amp;nbsp; dimension you add the dimensional context using the aggr() function. Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;class&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&amp;nbsp; &lt;STRONG&gt;aggr( &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;avg&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Session Duration]&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,':',1)*60+&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Session Duration]&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,':',2))&amp;nbsp; , &lt;STRONG&gt;[User])&lt;/STRONG&gt;&amp;nbsp; ,10)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-session-time/m-p/718782#M258281</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-17T13:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average session time</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-session-time/m-p/718783#M258282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jonathan. Works great! I did it wrong with the aggr() on the outside.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-session-time/m-p/718783#M258282</guid>
      <dc:creator>mr_novice</dc:creator>
      <dc:date>2014-09-17T13:58:34Z</dc:date>
    </item>
  </channel>
</rss>

