<?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 do I create15 min time buckets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413352#M427202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose USR is the employee... it also needs to be loaded in the table as 'USR' for the Peek().&lt;/P&gt;&lt;P&gt;I used Datetime to control spans between days, with only time it will check spans in the same day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The '...' should be completed with your actual table data, adding this calculated field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try loading the expression in different fields to check what fails:&lt;/P&gt;&lt;P&gt;- Peek(USR) as peekUSR,&lt;/P&gt;&lt;P&gt;USR,&lt;/P&gt;&lt;P&gt;time&lt;/P&gt;&lt;P&gt;Peek(time)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or upload a sample to make some tests.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Dec 2017 16:25:44 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2017-12-18T16:25:44Z</dc:date>
    <item>
      <title>How do I create15 min time buckets</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413346#M427196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently in the process of creating a password analytics dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the requirements is to create a list of people who have entered their password incorrectly more than once in the span of 15 min.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The data I have is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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;Password Failure Counter&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date&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;Time&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Employee&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/02/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15:50:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;09:15:30&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 14:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413346#M427196</guid>
      <dc:creator>isciberras</dc:creator>
      <dc:date>2017-12-15T14:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create15 min time buckets</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413347#M427197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a new field by rounding the Time to the lowest 15 minutes:&lt;/P&gt;&lt;P&gt;=floor(Time*96)/96 as TimeBucket&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 17:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413347#M427197</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-12-15T17:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create15 min time buckets</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413348#M427198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another similar option:&lt;/P&gt;&lt;P&gt;=Time(Floor(Time, 1/96))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 18:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413348#M427198</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-12-15T18:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create15 min time buckets</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413349#M427199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your help much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The time buckets worked however this didn't seem to solve the issue I am facing after all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point of this exercise is to see if anyone attempted a failed and successful login within a 15 min time span. Keeping In mind I have loaded in multiple days would you happen to know if this is possible?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can anyone please help me out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 12:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413349#M427199</guid>
      <dc:creator>isciberras</dc:creator>
      <dc:date>2017-12-18T12:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create15 min time buckets</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413350#M427200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac, initial question ws about counting incorrect logins, wich can be done with a table by employee and the bucket counting incorrect logins &amp;gt;1, but it won't count failed logins at xx:14 and xx:16 in the same bucket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loding sorted by employee and login you can check if the difference with prevuious failed login was in less than 15 minutes:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;If(Peek(Employee)=Employee, If(DateTimeField-&lt;SPAN style="font-size: 13.3333px;"&gt;Peek(DateTimeFieldLoaded)&amp;lt;1/96, 1, 0) isLessThan15Minutes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// Add conditions to check if both are failed logins?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;From/Resident ...&lt;/P&gt;&lt;P&gt;Order by Employee, DateTimeField;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know a successful login after a failed login more conditions needs to be added and a field to know when a login was failed or successful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 15:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413350#M427200</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-12-18T15:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create15 min time buckets</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413351#M427201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply much appreciated. I am starting to follow your syntax but I'm still not managing to get it to work. I don't get any errors in the script but there is no data in the field I am creating (Basically I am loading in a blank field). Can you kindly guide me a little bit more please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I wrote:&lt;/P&gt;&lt;P&gt;____________________&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Peek(USR)=USR, If(time-Peek (time) &amp;lt;1/96,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident table1&lt;/P&gt;&lt;P&gt;____________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this doesn't check If there was any time of login attempt of password failure counter check, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 16:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413351#M427201</guid>
      <dc:creator>isciberras</dc:creator>
      <dc:date>2017-12-18T16:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create15 min time buckets</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413352#M427202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose USR is the employee... it also needs to be loaded in the table as 'USR' for the Peek().&lt;/P&gt;&lt;P&gt;I used Datetime to control spans between days, with only time it will check spans in the same day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The '...' should be completed with your actual table data, adding this calculated field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try loading the expression in different fields to check what fails:&lt;/P&gt;&lt;P&gt;- Peek(USR) as peekUSR,&lt;/P&gt;&lt;P&gt;USR,&lt;/P&gt;&lt;P&gt;time&lt;/P&gt;&lt;P&gt;Peek(time)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or upload a sample to make some tests.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 16:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413352#M427202</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-12-18T16:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create15 min time buckets</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413353#M427203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your direction Ruben &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; fingers crossed I will get this to work. And yes sorry I fogot to mention USR is the employee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 16:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413353#M427203</guid>
      <dc:creator>isciberras</dc:creator>
      <dc:date>2017-12-18T16:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create15 min time buckets</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413354#M427204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good luck, if doesn't work try to create a sample that demonstrates the problem and I'll try to give a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-create15-min-time-buckets/m-p/1413354#M427204</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-12-18T20:00:02Z</dc:date>
    </item>
  </channel>
</rss>

