<?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 calculate difference using single date field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758836#M720019</link>
    <description>&lt;P&gt;Hi Taoufiq&lt;/P&gt;&lt;P&gt;There are multiple Au_entityID for eg i am showing single entity&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sirivis24s_1-1604570854448.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43596iEBBB66E9406DFEEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sirivis24s_1-1604570854448.png" alt="sirivis24s_1-1604570854448.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;based on above screen shot how can calculate start date and enddate in network days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 10:08:35 GMT</pubDate>
    <dc:creator>sirivis24s</dc:creator>
    <dc:date>2020-11-05T10:08:35Z</dc:date>
    <item>
      <title>How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758803#M720015</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am New to QlikView&amp;nbsp; I have data like&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Change date&lt;/TD&gt;&lt;TD&gt;changer&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Old assigned to&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;New Assigned to&lt;/TD&gt;&lt;TD&gt;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&gt;Open&lt;/TD&gt;&lt;TD&gt;Darrielle&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/12/2020&lt;/TD&gt;&lt;TD&gt;Dhruv&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Dhruv&lt;/TD&gt;&lt;TD&gt;Dhruv&lt;/TD&gt;&lt;TD&gt;Open&lt;/TD&gt;&lt;TD&gt;Fixed&lt;/TD&gt;&lt;TD&gt;Dhruv&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/15/2020&lt;/TD&gt;&lt;TD&gt;Dhruv&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Dhruv&lt;/TD&gt;&lt;TD&gt;Sujan&lt;/TD&gt;&lt;TD&gt;Fixed&lt;/TD&gt;&lt;TD&gt;Ready to retest&lt;/TD&gt;&lt;TD&gt;Dhruv&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/21/2020&lt;/TD&gt;&lt;TD&gt;Sujan&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Sujan&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Ready to retest&lt;/TD&gt;&lt;TD&gt;Closed&lt;/TD&gt;&lt;TD&gt;Sujan&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to Calculate&amp;nbsp; no of days between dates for eg&lt;/P&gt;&lt;P&gt;changed date is 11/1/2020 to 11/4/2020&amp;nbsp; then DTAT is 3 excluding Saturday's and Sundays .below is criteria&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sujan.s&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758803#M720015</guid>
      <dc:creator>sirivis24s</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758819#M720016</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28245"&gt;@sirivis24s&lt;/a&gt;&amp;nbsp; you can use networkdays function&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="script_token"&gt;networkdays (&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;start_date, end_date &lt;/SPAN&gt;&lt;SPAN class="statement"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="statement"&gt;for example &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=networkdays (Date#('11/1/2020','M/D/YYYY') , Date#('11/4/2020','M/D/YYYY')) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output is 3&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 09:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758819#M720016</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-11-05T09:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758824#M720017</link>
      <description>&lt;P&gt;Hi Taoufiq,&lt;/P&gt;&lt;P&gt;How can I split Change date into multiple dates i.e, start date and enddate&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>Thu, 05 Nov 2020 09:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758824#M720017</guid>
      <dc:creator>sirivis24s</dc:creator>
      <dc:date>2020-11-05T09:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758828#M720018</link>
      <description>&lt;P&gt;Based on AU_Entity_ID&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sirivis24s_0-1604570430838.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43591iCC71BCFB01410A8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sirivis24s_0-1604570430838.png" alt="sirivis24s_0-1604570430838.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 10:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758828#M720018</guid>
      <dc:creator>sirivis24s</dc:creator>
      <dc:date>2020-11-05T10:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758836#M720019</link>
      <description>&lt;P&gt;Hi Taoufiq&lt;/P&gt;&lt;P&gt;There are multiple Au_entityID for eg i am showing single entity&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sirivis24s_1-1604570854448.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43596iEBBB66E9406DFEEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sirivis24s_1-1604570854448.png" alt="sirivis24s_1-1604570854448.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;based on above screen shot how can calculate start date and enddate in network days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 10:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758836#M720019</guid>
      <dc:creator>sirivis24s</dc:creator>
      <dc:date>2020-11-05T10:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758844#M720020</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28245"&gt;@sirivis24s&lt;/a&gt;&amp;nbsp; in Script you can use for example :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;load *,networkdays(Date#(peek([Change date]),'M/D/YYYY'),Date#([Change date],'M/D/YYYY')) as DTAT;
LOAD * INLINE [
    Change date, changer,Old assigned to , New Assigned to, Old status, New Status, Name
    11/1/2020, Sujan, , Darrielle,  , New
    11/4/2020, Darrielle,  Darrielle, Sujan, New, Need More info, Darrielle
    11/4/2020, Sujan,  Sujan, Darrielle, Need More info, Open, Sujan
    11/4/2020, Darrielle, Darrielle, Dhruv, Open, Open, Darrielle
    11/12/2020, Dhruv, Dhruv, Dhruv, Open, Fixed, Dhruv
    11/15/2020, Dhruv, Dhruv, Sujan, Fixed, Ready to retest, Dhruv
    11/21/2020, Sujan, Sujan,  , Ready to retest, Closed, Sujan
];&lt;/LI-CODE&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 824px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43598i6ED2C3C0B5762488/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 10:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758844#M720020</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-11-05T10:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758858#M720021</link>
      <description>&lt;P&gt;Hello Taoufiq,&lt;/P&gt;&lt;P&gt;I have tried but it's not working i have attached sample QVW file and Datafile&lt;/P&gt;&lt;P&gt;please help me on this&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 10:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758858#M720021</guid>
      <dc:creator>sirivis24s</dc:creator>
      <dc:date>2020-11-05T10:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758872#M720022</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28245"&gt;@sirivis24s&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is a lot of data source in the qlik file&lt;BR /&gt;can you specify the part where you want to apply the function&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 11:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758872#M720022</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-11-05T11:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758883#M720023</link>
      <description>&lt;P&gt;Hello Taoufiq&lt;/P&gt;&lt;P&gt;You can apply at Audit Log Tab&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sujan.s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 11:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758883#M720023</guid>
      <dc:creator>sirivis24s</dc:creator>
      <dc:date>2020-11-05T11:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758886#M720024</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have used below forumla but it's not working in audit log tab i have taken staright table with expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;count(DTAT)&lt;/P&gt;&lt;P&gt;AUDIT_LOG1:&lt;BR /&gt;load *,network days(Date#(peek("AU_DATE"),'M/D/YYYY'),Date#("AU_DATE",'M/D/YYYY')) as DTAT&lt;BR /&gt;Resident AUDIT_LOG;&lt;BR /&gt;Drop Table AUDIT_LOG;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 11:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758886#M720024</guid>
      <dc:creator>sirivis24s</dc:creator>
      <dc:date>2020-11-05T11:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758894#M720025</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28245"&gt;@sirivis24s&lt;/a&gt;&amp;nbsp; I used from the Excel file this expression:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;SampleData:

load *,networkdays(Date(peek(AU_DATE)),Date(AU_DATE)) as DTAT;

LOAD AU_ENTITY_ID, 
     AU_USER, 
     AU_DATE, 
     AP_OLD_VALUE, 
     AP_NEW_VALUE//, 
    // DTAT
FROM
.\Defects_History.xls
(biff, embedded labels, table is Sheet1$);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is the output :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 645px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43608i20F056752EB31A74/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Make sure that :&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 11:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758894#M720025</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-11-05T11:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference using single date field</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758912#M720026</link>
      <description>&lt;P&gt;Hello Taoufiq,&lt;/P&gt;&lt;P&gt;I have tried it but notworking&amp;nbsp; can you try this excel in your machine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 12:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-using-single-date-field/m-p/1758912#M720026</guid>
      <dc:creator>sirivis24s</dc:creator>
      <dc:date>2020-11-05T12:36:54Z</dc:date>
    </item>
  </channel>
</rss>

