<?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 number of days from different months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-number-of-days-from-different-months/m-p/2013491#M83765</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16737"&gt;@BrunPierre&lt;/a&gt;&amp;nbsp; the networtkDays function i have used to get the during, and it works correct, now the issue is the total days taken including weekends on the different months, please look at my attachment.&lt;/P&gt;
&lt;P&gt;Hope you can assist there.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 06:28:25 GMT</pubDate>
    <dc:creator>Thabang231</dc:creator>
    <dc:date>2022-12-07T06:28:25Z</dc:date>
    <item>
      <title>Count number of days from different months</title>
      <link>https://community.qlik.com/t5/App-Development/Count-number-of-days-from-different-months/m-p/2013324#M83747</link>
      <description>&lt;P&gt;Hi Team I am looking for a solution, I currently want to do count from 2 date fields with different months,&lt;/P&gt;
&lt;P&gt;here is the formula I'm using,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;count(" To Date" - " From Date")&lt;/P&gt;
&lt;P&gt;I am getting the correct count when the "To date" are on same month from "From date", but when months are different for instance count('2022-09-02' - '2022-08-31') should give us 3, not 2.&lt;/P&gt;
&lt;P&gt;please assist. thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 17:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-number-of-days-from-different-months/m-p/2013324#M83747</guid>
      <dc:creator>Thabang231</dc:creator>
      <dc:date>2022-12-06T17:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of days from different months</title>
      <link>https://community.qlik.com/t5/App-Development/Count-number-of-days-from-different-months/m-p/2013417#M83756</link>
      <description>&lt;P&gt;The NetWorkDays function is worth checking out.&lt;/P&gt;
&lt;P&gt;NetWorkDays ("To Date", " From Date") as [Days Taken during the week]&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 22:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-number-of-days-from-different-months/m-p/2013417#M83756</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-12-06T22:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of days from different months</title>
      <link>https://community.qlik.com/t5/App-Development/Count-number-of-days-from-different-months/m-p/2013491#M83765</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16737"&gt;@BrunPierre&lt;/a&gt;&amp;nbsp; the networtkDays function i have used to get the during, and it works correct, now the issue is the total days taken including weekends on the different months, please look at my attachment.&lt;/P&gt;
&lt;P&gt;Hope you can assist there.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 06:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-number-of-days-from-different-months/m-p/2013491#M83765</guid>
      <dc:creator>Thabang231</dc:creator>
      <dc:date>2022-12-07T06:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of days from different months</title>
      <link>https://community.qlik.com/t5/App-Development/Count-number-of-days-from-different-months/m-p/2013533#M83773</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;simply subtracting the two dates will return difference in days and&lt;/FONT&gt;&lt;/FONT&gt; adding +1&amp;nbsp; is sufficient as dates are just numbers&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4" color="#FF6600"&gt;&lt;SPAN&gt;" To Date" - " From Date" + 1&amp;nbsp; &amp;nbsp;as DateDiff&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Also COUNT() as you are using will always return 1 and is incorrect,&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;Your count() might actually be returning the no of rows for that record and not the difference in days&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vinieme12_0-1670399106647.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95593iBB5D0AF01D9D3029/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vinieme12_0-1670399106647.png" alt="vinieme12_0-1670399106647.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 07:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-number-of-days-from-different-months/m-p/2013533#M83773</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-12-07T07:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of days from different months</title>
      <link>https://community.qlik.com/t5/App-Development/Count-number-of-days-from-different-months/m-p/2018480#M84123</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Try this expression -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;count(floor(Date#("To Date") - Date#("From Date"))) + 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SK&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 11:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-number-of-days-from-different-months/m-p/2018480#M84123</guid>
      <dc:creator>Saurabh_K14999</dc:creator>
      <dc:date>2022-12-20T11:47:18Z</dc:date>
    </item>
  </channel>
</rss>

