<?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: How to count how many people was/are in the building?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313665#M115773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what if there is a laps of days - ex. login 24.12.2011 time 2300 and logout 25.12.2011 time 0100 and I want who is in at midnight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve attached a QV file with data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2011 09:02:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-11T09:02:31Z</dc:date>
    <item>
      <title>How to count how many people were/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313663#M115771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´ve got a loginsystem/database that register login and logout with the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID, dateIn, timeIn, dateOut, timeOut&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to find out how many was in the building at any given date or how manwas in the building&lt;/P&gt;&lt;P&gt;at ex. 1200 o´clock. &lt;BR /&gt;ex. at which date were the most people in the building and at what time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know its possible using SUMPRODUCT i a spreadsheet, but I would like to use QV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that people log in and out at different times and are present in a variable period&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 08:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313663#M115771</guid>
      <dc:creator />
      <dc:date>2011-11-11T08:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313664#M115772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NO OF PERSONS AT SPECIFIED TIME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT( DISTINCT IF(timeOut&amp;lt;=ENTERYOURTIME,id))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 08:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313664#M115772</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-11-11T08:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313665#M115773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what if there is a laps of days - ex. login 24.12.2011 time 2300 and logout 25.12.2011 time 0100 and I want who is in at midnight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve attached a QV file with data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 09:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313665#M115773</guid>
      <dc:creator />
      <dc:date>2011-11-11T09:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313666#M115774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the attached file I need to know how many was "in" at all whole hours.&lt;/P&gt;&lt;P&gt;ex. at 1400 there were 20 present&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at 1500 there were 25 present&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a barchart e.ex showing all 24 hours on the x axis showing the count people present at the different hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 09:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313666#M115774</guid>
      <dc:creator />
      <dc:date>2011-11-11T09:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313667#M115775</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;Maybe this will help you for the first steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 09:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313667#M115775</guid>
      <dc:creator />
      <dc:date>2011-11-11T09:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313668#M115776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vicky&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx - but counting the timein only counts the people loggin in between 0900 and 0959.&lt;/P&gt;&lt;P&gt;I want the people that logged in at 0800 and logged out at 1200 were also present at 0900 to be a part of the count&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 11:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313668#M115776</guid>
      <dc:creator />
      <dc:date>2011-11-11T11:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313669#M115777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;login&amp;nbsp;&amp;nbsp; logout&lt;/P&gt;&lt;P&gt;0800&amp;nbsp;&amp;nbsp; 1200&lt;/P&gt;&lt;P&gt;0900&amp;nbsp;&amp;nbsp; 1000&lt;/P&gt;&lt;P&gt;0835&amp;nbsp;&amp;nbsp;&amp;nbsp; 0900&lt;/P&gt;&lt;P&gt;0300&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all 4 logins were present at 0900&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 11:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313669#M115777</guid>
      <dc:creator />
      <dc:date>2011-11-11T11:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313670#M115778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;why dont you use COUNT(id)&lt;/P&gt;&lt;P&gt;may it useful for you&lt;/P&gt;&lt;P&gt;thanks rohit &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 11:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313670#M115778</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2011-11-11T11:37:08Z</dc:date>
    </item>
    <item>
      <title>How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313671#M115779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rohit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look at my attachment - counting the ID doent do it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 12:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313671#M115779</guid>
      <dc:creator />
      <dc:date>2011-11-11T12:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313672#M115780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please everybody - there must be an answer to my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using intervalmatch sound like something usable - but I dont know how to?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Nov 2011 18:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313672#M115780</guid>
      <dc:creator />
      <dc:date>2011-11-19T18:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313673#M115781</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;maybe like attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a while in the load to create a record per day, so if a LogIn - LogOut period spans across date boundery, you will get two or more records.&lt;/P&gt;&lt;P&gt;Please check the script for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I used a data island with half hour values to be used as x-axis in my chart. This is the same approach as in the other thread you have found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 12:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313673#M115781</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-24T12:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313674#M115782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never really solved this to my satisfaction.&amp;nbsp; Intervalmatch (or doing the same with a while loop) tends to be how we solve these, but that isn't always practical.&amp;nbsp; If your users can login and logout at any time, multiple times per day, with those entries timestamped, there's no practial way to apply an intervalmatch or while loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did have one partially-successful experiment.&amp;nbsp; I used +1 and -1 values for the two states.&amp;nbsp; Then, to determine your state at any point in time, sum the state values &amp;lt;= that point in time.&amp;nbsp; You could make this a chart, I think even with a continuous axis, by using a date island.&amp;nbsp; The attached example is by date, but I think even timestamps would work, displayed at whatever resolution you wanted.&amp;nbsp; You could try it, anyway.&amp;nbsp; Performance could be pretty bad, though, for large data sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is an area of improvement for the QlikView product.&amp;nbsp; I've never been satisfied with its handling of date and time information.&amp;nbsp; I consider it quite poor in that regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 17:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313674#M115782</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-28T17:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313675#M115783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never mind my previous response.&amp;nbsp; I was trying to solve the problem for arbitrary times, but a chart won't be for arbitrary times.&amp;nbsp; If you only need to know who's there at whole hours, then an intervalmatch of timestamps to hours will do the trick.&amp;nbsp; Then you just count(distinct ID).&amp;nbsp; See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 19:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313675#M115783</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-28T19:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313676#M115784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;thanks a lot for your help - It , as you say does the trick, but the solution Í´m trying to get is to display&lt;/P&gt;&lt;P&gt;the overall load of people in the buillding at a given time.&lt;/P&gt;&lt;P&gt;There are no people logging in more than once a day.&lt;/P&gt;&lt;P&gt;What I need to show is at a timerange from 00 to 23 when is the load highest - using the attached data - that is data from 1 year. At what time a day(anyday) is the load the highest.&lt;/P&gt;&lt;P&gt;And then I also need to find out what day of the attached data had the highest load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 07:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313676#M115784</guid>
      <dc:creator />
      <dc:date>2011-11-29T07:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313677#M115785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi polschou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think John's approach will also deliver these information, just replace the dimension of the chart with what you desire, hour(HOUR) or DATE for example (please note HOUR is a time stamp field, so I created a HourOfDay field in the script from that). I've attached a modified file for illustration (Sheet 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that both mine and John's solution will not take login periods that don't cross the Hour / half hour boundery into consideration, but that's by design, because we are looking at logged in ID at certain points in time only. With your sample data, we both miss a noticeable amount of events though, so maybe you want to decrease the intervals we are looking at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 17:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313677#M115785</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-29T17:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to count how many people was/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313678#M115786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;polschou wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the solution Í´m trying to get is to displaythe overall load of people in the buillding at a given time.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first example I posted could be adapted to give you the load of people in the building at any arbitrary time.&amp;nbsp; A better approach for your data would be to count IDs using set analysis based on the time in and time out and your arbitrary time, which would be better for your specific case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;count({&amp;lt;TIMESTAMPIN *={"&amp;lt;=$(vTimestamp)"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,TIMESTAMPOUT*={"&amp;gt;=$(vTimestamp)"}&amp;gt;} distinct ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second example I posted gives you the load of people at any given hour.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want something other than one of the above, I don't understand what you're asking for.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;polschou wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to show is at a timerange from 00 to 23 when is the load highest - using the attached data - that is data from 1 year. At what time a day(anyday) is the load the highest. &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Again, I'm not sure I understand.&amp;nbsp; The graph shows when the load was highest for the selected date.&amp;nbsp; What do you want, which hour was highest for the whole year?&amp;nbsp; OK, make the hour field be just the hour, and do your intervalmatch on a datehour field.&amp;nbsp; This isn't some advanced technique - if you need a field, add that field.&amp;nbsp; Or did you want some text box or something showing the hour with the highest load? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;concat(aggr(if(rank(count(distinct ID),1,1)=1,HOUR),HOUR),',')&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;polschou wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I also need to find out what day of the attached data had the highest load?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Make a chart by date and find the highest point, or sort by Y descending.&amp;nbsp; If you just want a single number, do it the same as hour:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;concat(aggr(if(rank(count(distinct ID),1,1)=1,DATE),DATE),',')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've cheated a little in that I've inner joined the intervalmatch back to your main table to get rid of records where they weren't in the building at the end of ANY hour, as then the null hour or date could have the highest count, and did for date.&amp;nbsp; This also breaks the set analysis above, since it no longer supports arbitrary times.&amp;nbsp; But I don't have any idea if this is what you're after, so there's only so far I want to go with this right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 17:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313678#M115786</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-29T17:59:57Z</dc:date>
    </item>
    <item>
      <title>How to count how many people were/are in the building??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313679#M115787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for all your help - its what I needed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 13:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-how-many-people-were-are-in-the-building/m-p/313679#M115787</guid>
      <dc:creator />
      <dc:date>2011-12-01T13:18:49Z</dc:date>
    </item>
  </channel>
</rss>

