<?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 Date for occurrence in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-for-occurrence/m-p/807701#M1043763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;Algorithm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;&lt;BR class="kix-line-break" /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;I need to find a solution to calculate when activities occurs. I want to do this in the load script. As example an activity happens on Mondays and Thursdays every 5th week&amp;nbsp; during 1.5 year.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #000000; font-family: Arial; line-height: 1.5em;"&gt;Thank's &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 11:56:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-24T11:56:17Z</dc:date>
    <item>
      <title>Date for occurrence</title>
      <link>https://community.qlik.com/t5/QlikView/Date-for-occurrence/m-p/807701#M1043763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;Algorithm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;&lt;BR class="kix-line-break" /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;I need to find a solution to calculate when activities occurs. I want to do this in the load script. As example an activity happens on Mondays and Thursdays every 5th week&amp;nbsp; during 1.5 year.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #000000; font-family: Arial; line-height: 1.5em;"&gt;Thank's &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 11:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-for-occurrence/m-p/807701#M1043763</guid>
      <dc:creator />
      <dc:date>2014-11-24T11:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date for occurrence</title>
      <link>https://community.qlik.com/t5/QlikView/Date-for-occurrence/m-p/807702#M1043764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out the answer when posted question...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In first step:&lt;BR /&gt;1) calc no of dayes for the time interval&lt;BR /&gt;2) Add a flag if it correct weekday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second step:&lt;/P&gt;&lt;P&gt;3) A modulus calc if the Flag is correct:&lt;BR /&gt;if(Flag=1,if(Mod(Counter,WEEKPER)=0,1,0),0) as Flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 13:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-for-occurrence/m-p/807702#M1043764</guid>
      <dc:creator />
      <dc:date>2014-11-24T13:18:34Z</dc:date>
    </item>
  </channel>
</rss>

