<?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: Count days worked in a row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-days-worked-in-a-row/m-p/1779840#M455100</link>
    <description>&lt;P&gt;a quick way would be to add the start date of the streak:&lt;/P&gt;&lt;P&gt;load Staff, if(peek('Date')=Date-1,peek('Start'),Date) as Start, Date;&lt;BR /&gt;load * inline [&lt;BR /&gt;Staff,Date&lt;BR /&gt;A,1/1/2021&lt;BR /&gt;A,1/2/2021&lt;BR /&gt;A,1/3/2021&lt;BR /&gt;A,1/10/2021&lt;BR /&gt;A,1/11/2021&lt;BR /&gt;A,1/12/2021&lt;BR /&gt;A,1/19/2021&lt;BR /&gt;A,1/20/2021&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;unfortunately the peek function might slow down your load if you have 100M+ records.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1612365808001.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48406i8601E4B7A0BB5DE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1612365808001.png" alt="edwin_0-1612365808001.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;you can then show the number of days straight starting from specific dates&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2021 15:24:22 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2021-02-03T15:24:22Z</dc:date>
    <item>
      <title>Count days worked in a row</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-worked-in-a-row/m-p/1779576#M455083</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;The requirement I have been given is to count the number of days staff work in a row.&lt;/P&gt;&lt;P&gt;In the screenshot below, I want to count the first 8 days where there is a value in Duration (below the Week day) and then skip 10/7 (where Duration is null) and continue counting from 11/07 and onwards until the next day where Duration is null.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asamariaekrickl_1-1612323276853.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48329i5670389336C2066A/image-size/large?v=v2&amp;amp;px=999" role="button" title="asamariaekrickl_1-1612323276853.png" alt="asamariaekrickl_1-1612323276853.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 03:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-worked-in-a-row/m-p/1779576#M455083</guid>
      <dc:creator>asamariaekrickl</dc:creator>
      <dc:date>2021-02-03T03:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count days worked in a row</title>
      <link>https://community.qlik.com/t5/QlikView/Count-days-worked-in-a-row/m-p/1779840#M455100</link>
      <description>&lt;P&gt;a quick way would be to add the start date of the streak:&lt;/P&gt;&lt;P&gt;load Staff, if(peek('Date')=Date-1,peek('Start'),Date) as Start, Date;&lt;BR /&gt;load * inline [&lt;BR /&gt;Staff,Date&lt;BR /&gt;A,1/1/2021&lt;BR /&gt;A,1/2/2021&lt;BR /&gt;A,1/3/2021&lt;BR /&gt;A,1/10/2021&lt;BR /&gt;A,1/11/2021&lt;BR /&gt;A,1/12/2021&lt;BR /&gt;A,1/19/2021&lt;BR /&gt;A,1/20/2021&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;unfortunately the peek function might slow down your load if you have 100M+ records.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1612365808001.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48406i8601E4B7A0BB5DE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1612365808001.png" alt="edwin_0-1612365808001.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;you can then show the number of days straight starting from specific dates&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 15:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-days-worked-in-a-row/m-p/1779840#M455100</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-02-03T15:24:22Z</dc:date>
    </item>
  </channel>
</rss>

