<?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: Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date/m-p/1524221#M438261</link>
    <description>&lt;P&gt;Hi Parvez,&lt;/P&gt;&lt;P&gt;Because when you use "&lt;SPAN&gt;TempDate-Holidays", you will get a number,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the number means the number of days between the TempDate and Holidays.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;eg. 2018-01-02 - 2018-01-01 = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actually I'm not really sure what you want, but you can use the "difference" to get what you want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Aiolos Zhao&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Dec 2018 06:43:50 GMT</pubDate>
    <dc:creator>uacg0009</dc:creator>
    <dc:date>2018-12-27T06:43:50Z</dc:date>
    <item>
      <title>Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1524210#M438260</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I am generating dates with the below code&lt;/P&gt;&lt;P&gt;LET vMinDate=Num(MakeDate(2018,1,1));&lt;/P&gt;&lt;P&gt;let vMaxDate=Num(MakeDate(Year(today())+1,12,31));&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;LOAD&lt;BR /&gt;Date($(vMinDate)+IterNo()-1) as TempDate&lt;BR /&gt;AutoGenerate(1)&lt;BR /&gt;While $(vMinDate)+IterNo()-1&amp;lt;=$(vMaxDate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the field TempDate, I got the dates from 01/01/2018 to 12/31/2019&lt;/P&gt;&lt;P&gt;I have an another field call as Festival, where there are list of holidays are listed&lt;/P&gt;&lt;P&gt;Festival:&lt;/P&gt;&lt;P&gt;left join(Temp)&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Holidays&lt;/P&gt;&lt;P&gt;01/01/2018&lt;/P&gt;&lt;P&gt;01/26/2018&lt;/P&gt;&lt;P&gt;02/14/2018&lt;/P&gt;&lt;P&gt;04/01/2018&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;(This is the sample table with list of holidays)&lt;/P&gt;&lt;P&gt;Now, I have to get a field called as Working days by separating the TempDate and Holidays&lt;/P&gt;&lt;P&gt;*****************************&lt;/P&gt;&lt;P&gt;I am trying to join the Temp table and Festival table and derive a table as&amp;nbsp;&lt;/P&gt;&lt;P&gt;T3:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;TempDate,&lt;/P&gt;&lt;P&gt;Holidays,&lt;/P&gt;&lt;P&gt;Date((TempDate-Holidays), 'MM/DD/YYYY') as WorkingDays&lt;/P&gt;&lt;P&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;But, I dont know why I am getting incorrect WorkingDays&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2653iBD8CA504A991513C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am not able to understand why the years are generating as 1899 and 1900.&lt;/P&gt;&lt;P&gt;Can any one help me!!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 05:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1524210#M438260</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-12-27T05:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1524221#M438261</link>
      <description>&lt;P&gt;Hi Parvez,&lt;/P&gt;&lt;P&gt;Because when you use "&lt;SPAN&gt;TempDate-Holidays", you will get a number,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the number means the number of days between the TempDate and Holidays.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;eg. 2018-01-02 - 2018-01-01 = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actually I'm not really sure what you want, but you can use the "difference" to get what you want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Aiolos Zhao&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 06:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1524221#M438261</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2018-12-27T06:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1524223#M438262</link>
      <description>Hey Aiolos Zhao,&lt;BR /&gt;&lt;BR /&gt;Thank You for your reply!&lt;BR /&gt;&lt;BR /&gt;I am trying to calculate number of working days in a year, by subtracting TempDate and Holidays.&lt;BR /&gt;&lt;BR /&gt;I have to get&lt;BR /&gt;TempDate-Holidays=dates of working days(WorkingDays)</description>
      <pubDate>Thu, 27 Dec 2018 06:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1524223#M438262</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-12-27T06:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1524224#M438263</link>
      <description>Hi,&lt;BR /&gt;if what you want is only the number of days, I think you don't need to use the Date() function,&lt;BR /&gt;you can try to use the "TempDate-Holidays" directly, then you can get the number of days I think.&lt;BR /&gt;Aiolos Zhao</description>
      <pubDate>Thu, 27 Dec 2018 06:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1524224#M438263</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2018-12-27T06:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1524227#M438264</link>
      <description>Hey Aiolos Zhao,&lt;BR /&gt;&lt;BR /&gt;Thank You for your reply!&lt;BR /&gt;&lt;BR /&gt;As you said, I am able to get the days b/w the dates with the expression TempDate-Holidays.&lt;BR /&gt;&lt;BR /&gt;But, I want to show a filed where the holidays should be excluded.&lt;BR /&gt;Ex:&lt;BR /&gt;in TempDate we have all the dates from 01/01/2018 to 12/31/2019&lt;BR /&gt;01/01/2018&lt;BR /&gt;01/02/2018&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;etc&lt;BR /&gt;Let suppose, if 1st Jan 2018 is a holiday, it should be removed from the TempDate field and should be stored a separate file called "working Days"&lt;BR /&gt;WorkingDays&lt;BR /&gt;01/02/2018&lt;BR /&gt;01/03/2018&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Here the 01/01/2018 is excluded as because it was a holiday!&lt;BR /&gt;&lt;BR /&gt;Can you help me with that!!</description>
      <pubDate>Thu, 27 Dec 2018 07:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1524227#M438264</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-12-27T07:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1524232#M438265</link>
      <description>&lt;P&gt;Hope below is what you want:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Date.PNG" style="width: 420px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2657iDF05F4572B33C05D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Date.PNG" alt="Date.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Aiolos Zhao&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 07:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1524232#M438265</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2018-12-27T07:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1524235#M438266</link>
      <description>Hey Aiolos Zhao,&lt;BR /&gt;&lt;BR /&gt;Thank You for your reply!&lt;BR /&gt;&lt;BR /&gt;This is the required o/p, I was looking!&lt;BR /&gt;&lt;BR /&gt;I taught by subtracting we can achieve the filed. But by simply using the Not Exists() you made it!&lt;BR /&gt;Thank You for your time and solution!</description>
      <pubDate>Thu, 27 Dec 2018 07:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1524235#M438266</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-12-27T07:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.qlik.com/t5/QlikView/Date/m-p/1524236#M438267</link>
      <description>You're welcome, glad to help you~</description>
      <pubDate>Thu, 27 Dec 2018 07:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date/m-p/1524236#M438267</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2018-12-27T07:17:52Z</dc:date>
    </item>
  </channel>
</rss>

