<?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 Assistance with an Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assistance-with-an-Expression/m-p/913869#M988835</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 have a set of data where we have log in times for people each day, and a seperate record of their contracted hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoggedIn&lt;/P&gt;&lt;P&gt;01/07/15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 503&lt;/P&gt;&lt;P&gt;02/07/15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 503&lt;/P&gt;&lt;P&gt;03/07/15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 512&lt;/P&gt;&lt;P&gt;04/07/15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;04/07/15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 275&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contracted Hours per day 510&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to find the % of logged in against the contracted hours, but we have instance where agents log out and back in during the same day (e.g. 04/07/15 data above)&lt;/P&gt;&lt;P&gt;S I want to divide the logged in by the contracted hours per day, but take into account where there may be more than one instance of the same date and therefore still only have a contracted hours of 510 per day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I have at the moment is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum(LoggedIn) / count(distinct(date)*ContractedHours*100,'##.##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This however is not returning the result I expect. If I filter to the&amp;nbsp; 01/07/15 I'm getting 34.98 and not the 98 or 99 that I should be expecting.&lt;/P&gt;&lt;P&gt;Do I need to break up the expression in a different way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2015 09:33:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-24T09:33:43Z</dc:date>
    <item>
      <title>Assistance with an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Assistance-with-an-Expression/m-p/913869#M988835</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 have a set of data where we have log in times for people each day, and a seperate record of their contracted hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoggedIn&lt;/P&gt;&lt;P&gt;01/07/15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 503&lt;/P&gt;&lt;P&gt;02/07/15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 503&lt;/P&gt;&lt;P&gt;03/07/15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 512&lt;/P&gt;&lt;P&gt;04/07/15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;04/07/15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 275&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contracted Hours per day 510&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to find the % of logged in against the contracted hours, but we have instance where agents log out and back in during the same day (e.g. 04/07/15 data above)&lt;/P&gt;&lt;P&gt;S I want to divide the logged in by the contracted hours per day, but take into account where there may be more than one instance of the same date and therefore still only have a contracted hours of 510 per day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I have at the moment is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum(LoggedIn) / count(distinct(date)*ContractedHours*100,'##.##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This however is not returning the result I expect. If I filter to the&amp;nbsp; 01/07/15 I'm getting 34.98 and not the 98 or 99 that I should be expecting.&lt;/P&gt;&lt;P&gt;Do I need to break up the expression in a different way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 09:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assistance-with-an-Expression/m-p/913869#M988835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-24T09:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Assistance-with-an-Expression/m-p/913870#M988836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 09:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assistance-with-an-Expression/m-p/913870#M988836</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-07-24T09:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Assistance-with-an-Expression/m-p/913871#M988837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tRY:&lt;/P&gt;&lt;P&gt;=aggr(sum(LoggedIn),dATE)/510*100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="24-Jul-15 11-02-11 AM.jpg" class="jive-image image-1" src="/legacyfs/online/93874_24-Jul-15 11-02-11 AM.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 10:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assistance-with-an-Expression/m-p/913871#M988837</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-07-24T10:01:40Z</dc:date>
    </item>
  </channel>
</rss>

