<?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: Aggr function count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function-count/m-p/706760#M254669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wagner,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first table you have two entries for ID_person =1 with two different ID_Address, but in table two you have only one entry for Goal hour for iD_person=1 ?How can we identify&amp;nbsp; for which Id_address goah hour is that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 14:59:35 GMT</pubDate>
    <dc:creator>jyothish8807</dc:creator>
    <dc:date>2014-09-26T14:59:35Z</dc:date>
    <item>
      <title>Aggr function count</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-count/m-p/706758#M254667</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 need to count how many address i've visited before a specific hour for each person. This hour is dynamic, it change for each person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date, ID_PERSON, id_address, hourVisited&lt;/P&gt;&lt;P&gt;26/09, 1, 1, 03:30&lt;/P&gt;&lt;P&gt;26/09, 1, 2, 03:30&lt;/P&gt;&lt;P&gt;26/09, 2, 3, 01:30&lt;/P&gt;&lt;P&gt;26/09, 3, 4, 03:32&lt;/P&gt;&lt;P&gt;26/09, 4, 5, 09:32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And other table:&lt;/P&gt;&lt;P&gt;Date, ID_PERSON, GoalHour&lt;/P&gt;&lt;P&gt;26/09, 1, 04:00&lt;/P&gt;&lt;P&gt;26/09, 2, 01:00&lt;/P&gt;&lt;P&gt;26/09, 3, 01:30&lt;/P&gt;&lt;P&gt;26/09,4, 08:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i need to count id_address which hourVisited &amp;lt; GoalHour. My key between this 2 table is ID_PERSON. &lt;/P&gt;&lt;P&gt;In this case, i will count these id_address:&lt;/P&gt;&lt;P&gt;1,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made this expression:&lt;/P&gt;&lt;P&gt;= aggr(count(if(time(hourVisited,'hh:mm:ss') &amp;lt; time#(GoalHour,'hh:mm'), id_address)), ID_PERSON)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This in a pivot table with ID_PERSON as dimension. Doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on expression or modelling?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;Morandi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-count/m-p/706758#M254667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T14:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function count</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-count/m-p/706759#M254668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in a chart with ID_PERSON as dim&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(if(hourVisited&amp;lt;GoalHour,&amp;nbsp; id_address))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-count/m-p/706759#M254668</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-26T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function count</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-count/m-p/706760#M254669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wagner,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first table you have two entries for ID_person =1 with two different ID_Address, but in table two you have only one entry for Goal hour for iD_person=1 ?How can we identify&amp;nbsp; for which Id_address goah hour is that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-count/m-p/706760#M254669</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-09-26T14:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function count</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-count/m-p/706761#M254670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was format of each date.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hourVisited - i've transformed by other field and used time. Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;date(date(date, 'YYYY/MM/DD hh:mm:ss'),'hh:mm:ss')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;GoalHour - i've just imported. So it was a String.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Formula :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count(if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(time#(hourVisited,'hh:mm:ss')&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;GoalHour&lt;/SPAN&gt;,&amp;nbsp; id_address))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If transformed to time() work too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Many thanks !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Morandi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 15:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-count/m-p/706761#M254670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T15:01:58Z</dc:date>
    </item>
  </channel>
</rss>

