<?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 Counting Days in specific range in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Counting-Days-in-specific-range/m-p/1900658#M74312</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am creating a tool that counts days within a specific range of time.&lt;/P&gt;
&lt;P&gt;I have a database of people who took a leave of abscence from work, for example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Battistella_0-1646317911875.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73516i484A983D3C887A8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Battistella_0-1646317911875.png" alt="Battistella_0-1646317911875.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;See that I have a lot of short periods of time, and I need to filter a specific range such as:&lt;/P&gt;
&lt;P&gt;(format being: dd/MM/yyyy)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Battistella_1-1646318017025.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73517i84C4BDC59C8A017F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Battistella_1-1646318017025.png" alt="Battistella_1-1646318017025.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The problem is there are some periods of time that begins before that range, but ends between it, or that starts between and ends after. Therefore my counter is adding the full days. For example:&lt;/P&gt;
&lt;P&gt;John&amp;nbsp; took a leave of abscense from&amp;nbsp; o5/03/2021 to 25/03/2021&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to see how many days off he was from 15/03/2021 to 15/04/2021&lt;/P&gt;
&lt;P&gt;It is suppose to be =10, but it is resulting 30.&lt;/P&gt;
&lt;P&gt;I don't know if i could explain my problem, any doubts just ask me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you all&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 14:45:44 GMT</pubDate>
    <dc:creator>Battistella</dc:creator>
    <dc:date>2022-03-03T14:45:44Z</dc:date>
    <item>
      <title>Counting Days in specific range</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-Days-in-specific-range/m-p/1900658#M74312</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am creating a tool that counts days within a specific range of time.&lt;/P&gt;
&lt;P&gt;I have a database of people who took a leave of abscence from work, for example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Battistella_0-1646317911875.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73516i484A983D3C887A8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Battistella_0-1646317911875.png" alt="Battistella_0-1646317911875.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;See that I have a lot of short periods of time, and I need to filter a specific range such as:&lt;/P&gt;
&lt;P&gt;(format being: dd/MM/yyyy)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Battistella_1-1646318017025.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73517i84C4BDC59C8A017F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Battistella_1-1646318017025.png" alt="Battistella_1-1646318017025.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The problem is there are some periods of time that begins before that range, but ends between it, or that starts between and ends after. Therefore my counter is adding the full days. For example:&lt;/P&gt;
&lt;P&gt;John&amp;nbsp; took a leave of abscense from&amp;nbsp; o5/03/2021 to 25/03/2021&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to see how many days off he was from 15/03/2021 to 15/04/2021&lt;/P&gt;
&lt;P&gt;It is suppose to be =10, but it is resulting 30.&lt;/P&gt;
&lt;P&gt;I don't know if i could explain my problem, any doubts just ask me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you all&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 14:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-Days-in-specific-range/m-p/1900658#M74312</guid>
      <dc:creator>Battistella</dc:creator>
      <dc:date>2022-03-03T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Days in specific range</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-Days-in-specific-range/m-p/1900732#M74318</link>
      <description>&lt;P&gt;You need to generate all dates in the range, and then just use&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count(ReferenceDate)&lt;/P&gt;&lt;P&gt;as measure. See more on&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Creating-Reference-Dates-for-Intervals/ba-p/1463944" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Creating-Reference-Dates-for-Intervals/ba-p/1463944&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 16:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-Days-in-specific-range/m-p/1900732#M74318</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-03-03T16:31:05Z</dc:date>
    </item>
  </channel>
</rss>

