<?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: Double of average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106799#M366511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Henric , &lt;/P&gt;&lt;P&gt;That's exactly what I am trying to achieve. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didier &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2016 11:00:45 GMT</pubDate>
    <dc:creator>didierodayo</dc:creator>
    <dc:date>2016-07-20T11:00:45Z</dc:date>
    <item>
      <title>Double of average</title>
      <link>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106791#M366503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to return the count of a field (system) IF the count of the field is double or more the average. &lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;LOGID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;SYSTEM_TYPE&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;USER&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ACCESSTIME&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dimension is user and the count of system_type is returning a big chart because it is a big table. So I am only interested in system_types accessed more than twice the average time of for the user. I want the result on a bar chart that displays the Users and the count of the system_type that was accessed double the average time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I welcome any idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 08:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106791#M366503</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-20T08:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Double of average</title>
      <link>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106792#M366504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, for each combination of user and system type, you want to calculate the average access time.&lt;/P&gt;&lt;P&gt;Then you want to compare this with the average access time for that user irrespective of which system type it is.&lt;/P&gt;&lt;P&gt;And then you want to count the system types for which this ratio is 2 or greater. Is this correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, I think you should use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Count(distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Avg(ACCESSTIME) / Avg(total &amp;lt;USER&amp;gt; &lt;SPAN style="font-size: 13.3333px;"&gt;ACCESSTIME&lt;/SPAN&gt;)&amp;gt;=2,SYSTEM_TYPE),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SYSTEM_TYPE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 08:27:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106792#M366504</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-07-20T08:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Double of average</title>
      <link>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106793#M366505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry the accesstime is misleading, it is actually a Timestamp field. and the System_Type is what am counting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count how many total( SYSTEM_TYPE) were access per user . BUT I would like to know this only WHERE the access ratio is 2 or greater.&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, 20 Jul 2016 08:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106793#M366505</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-20T08:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Double of average</title>
      <link>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106794#M366506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression does indeed count the number of system types. But now I don't understand your criterion: The ratio should be a factor 2 or greater, that's understood. But, the ratio of &lt;EM&gt;&lt;STRONG&gt;what&lt;/STRONG&gt;&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 09:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106794#M366506</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-07-20T09:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Double of average</title>
      <link>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106795#M366507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ratio of the count(SYSTEM_TYPE) FOR every user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think my example was confusing. the user here is not the one accessing the systemtypes.&lt;/P&gt;&lt;P&gt;The systemtypes are accessed to see the user records. so I have counted the systemtypes for dimension user and from the result I would now like to count only where the total count per user is more than double the average for all users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I managed to explain properly. Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Didier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 09:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106795#M366507</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-20T09:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Double of average</title>
      <link>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106796#M366508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count(SYSTEM_TYPE) for a specific user and system type can never be greater than the overall count for the user. So the requirement that it should be 2 or greater doesn't make sense.&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need to post an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 09:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106796#M366508</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-07-20T09:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Double of average</title>
      <link>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106797#M366509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is going to count(SYSTEM_TYPE) for all the user and the average count of that is what is going to be the basis to define the users who had a Total count(SYSTEM_TYPE) more than double the average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so let say after the count for all user the average is 25 then Chart I want to create should on show the count for user where (SYSTEM_TYPE) is &amp;gt;=50.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 09:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106797#M366509</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-20T09:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Double of average</title>
      <link>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106798#M366510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, I suspect you want to use Count(distinct ...) instead of a standard count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand it, you want to calculate&lt;/P&gt;&lt;P&gt;&amp;nbsp; Count(distinct SYSTEM_TYPE) for one specific user&lt;/P&gt;&lt;P&gt;and compare that with&lt;/P&gt;&lt;P&gt;&amp;nbsp; the Average &lt;SPAN style="font-size: 13.3333px;"&gt;over all users &lt;/SPAN&gt;of Count(distinct SYSTEM_TYPE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, you should try the following as ratio&lt;/P&gt;&lt;P&gt;&amp;nbsp; Count(distinct SYSTEM_TYPE) / Avg(Aggr(Count(distinct SYSTEM_TYPE),USER))&lt;/P&gt;&lt;P&gt;and the following as expression in a chart with USER as dimension&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(distinct SYSTEM_TYPE) /&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg(Aggr(Count(distinct SYSTEM_TYPE),USER))&amp;gt;=2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(distinct SYSTEM_TYPE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 10:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106798#M366510</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-07-20T10:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Double of average</title>
      <link>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106799#M366511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Henric , &lt;/P&gt;&lt;P&gt;That's exactly what I am trying to achieve. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didier &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 11:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-of-average/m-p/1106799#M366511</guid>
      <dc:creator>didierodayo</dc:creator>
      <dc:date>2016-07-20T11:00:45Z</dc:date>
    </item>
  </channel>
</rss>

