<?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: Calendar - previous working day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calendar-previous-working-day/m-p/1515526#M436945</link>
    <description>&lt;P&gt;I think you could use lastworkdate() within the deadlist-table and adjust with it the date-value and creates a mapping-table from it and then pulling these data with applymap() into your calendar.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Mon, 03 Dec 2018 12:43:38 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-12-03T12:43:38Z</dc:date>
    <item>
      <title>Calendar - previous working day</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-previous-working-day/m-p/1515462#M436937</link>
      <description>&lt;P&gt;I've got a master calendar that includes weekends, public holidays and other special days where no-one will be in the office. I've also got a list of deadlines. If the deadlines is on a non-working day, I need to find the previous working day. n.b. I need to do this in the script (not visually in a chart).&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see the Working Day No is sequential. The flag for Working day is 1 and 0 being non-working day:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Master Dates" style="width: 302px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1449iC418A758E7A08066/image-size/large?v=v2&amp;amp;px=999" role="button" title="masterdates.PNG" alt="Master Dates" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Master Dates&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've got this list of Deadlines. The ones in yellow are actually non-working days, so the actual deadline is the previous working day. Therefore I needs a new column/field adding on to this table to show the ACTUAL_PAYMENT_DATE that checks if the PAYMENT_DATE is a non-working day, and if so finds the previous working day:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deadlines" style="width: 646px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1451i76BDEE69DABF4D08/image-size/large?v=v2&amp;amp;px=999" role="button" title="deadlines.PNG" alt="Deadlines" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Deadlines&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest how I do this? I suspect it's quite simple but I just don't know the answer.&lt;/P&gt;&lt;P&gt;n.b. The attached datemaster.xlsx is actually a QVD but the forum would not allow me to upload so I converted it to xlsx.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-previous-working-day/m-p/1515462#M436937</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2024-11-16T21:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar - previous working day</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-previous-working-day/m-p/1515526#M436945</link>
      <description>&lt;P&gt;I think you could use lastworkdate() within the deadlist-table and adjust with it the date-value and creates a mapping-table from it and then pulling these data with applymap() into your calendar.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 12:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-previous-working-day/m-p/1515526#M436945</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-12-03T12:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar - previous working day</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-previous-working-day/m-p/1515626#M436951</link>
      <description>&lt;P&gt;I actually wanted Firstworkdate but that was enough to point me in the right direction:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Firstworkdate(Num(PAYMENT_DATE),1,$(vHoliday_GB)) as ACTUAL_PAYMENT_DATE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'd already got my variable for Holidays to create my masterdates calendar so could easily re-use it here. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 14:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-previous-working-day/m-p/1515626#M436951</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2018-12-03T14:22:15Z</dc:date>
    </item>
  </channel>
</rss>

