<?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: Rolling weeks backwards excluding holiday weeks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-weeks-backwards-excluding-holiday-weeks/m-p/1083798#M360938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use a master-calendar which considered the working-days and the holidays with a flag for them and a customized week-counter (maybe excluding weeks with less then four workingdays or whatever you need) so that I could use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; CustomizedWeekCounter = {"&amp;gt;=$(=max(CustomizedWeekCounter) - 12)"}&amp;gt;} Verbrauch_G)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get such a master-calendar, see: &lt;A href="https://community.qlik.com/docs/DOC-14220"&gt;Master Calendar with movable holidays&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2016 09:43:56 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-02-12T09:43:56Z</dc:date>
    <item>
      <title>Rolling weeks backwards excluding holiday weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-weeks-backwards-excluding-holiday-weeks/m-p/1083795#M360935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for production planning, we use the material consumption of the past 12 weeks. We calculate the average &lt;/P&gt;&lt;P&gt;consumption per week and the range of coverage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excluding holiday weeks! No material consumption took place two weeks at Christmas (week 52 and week 53 / &lt;/P&gt;&lt;P&gt;2015, German Calendar).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two weeks of Holiday (red) have to be eliminated from the calculation of rolling 12 consumption.&lt;BR /&gt;The both past weeks "minus 13" and " minus 14" (blue) must be added to get a 12 weeks average.&lt;BR /&gt;This rule is valid until the start of the period of 12 weeks is 04.01.2016. Actual week in this example is week 6/2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="12weeks.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114057_12weeks.PNG" style="width: 620px; height: 43px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The beginning and the end of the period of 12 weeks I have calculated with variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script / Variables definition:&lt;BR /&gt;// Week -1 from today :&lt;BR /&gt;LET vD_WeekToday_Start_01 = Date(WeekStart( Today())-7, 'DD.MM.YYYY');&lt;BR /&gt;LET vD_WeekToday_End_01&amp;nbsp;&amp;nbsp; = Date(WeekEnd( Today())-7,&amp;nbsp;&amp;nbsp; 'DD.MM.YYYY');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Week -12 from today:&lt;BR /&gt;LET vD_WeekToday_Start_12 = Date(WeekStart( Today())-84, 'DD.MM.YYYY');&lt;BR /&gt;LET vD_WeekToday_End_12&amp;nbsp;&amp;nbsp; = Date(WeekEnd( Today())-84,&amp;nbsp;&amp;nbsp; 'DD.MM.YYYY');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Elimination of the Holiday weeks is (too) hard coded:&lt;BR /&gt;//Set analysis formula (Verbrauch = material consumption, Datum_KW_Mo = Monday date of week) :&lt;BR /&gt;sum({&amp;lt;Datum_KW_Mo_Verbrauch={'&amp;gt;=$(vD_WeekToday_Start_12)&amp;lt;=$(vD_WeekToday_End_01)'}&amp;gt;}Verbrauch_G)&lt;BR /&gt;-&lt;BR /&gt;sum({&amp;lt;Datum_KW_Mo_Verbrauch={'&amp;gt;=21.12.2015&amp;lt;=27.12.2015'}&amp;gt;}Verbrauch_G)&lt;BR /&gt;-&lt;BR /&gt;sum({&amp;lt;Datum_KW_Mo_Verbrauch={'&amp;gt;=28.12.2015&amp;lt;=03.01.2016'}&amp;gt;}Verbrauch_G)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Missing here is the addition of the weeks-13 and -14. For this purpose, conditions are necessary, for example:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Rule1:&lt;BR /&gt;if(Date(WeekStart( Today())-84, 'DD.MM.YYYY') &amp;lt;= '21.12.2015','Substact week 52, substract week 53 and &lt;/P&gt;&lt;P&gt;Add Minus_week13, Add Minus_week14','Nested Rule2')&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Nested Rule2:&lt;BR /&gt;if(Date(WeekStart( Today())-84, 'DD.MM.YYYY') &amp;lt;= '28.12.2015','Substact week 53 and Add &lt;/P&gt;&lt;P&gt;Minus_week13','Nested Rule3')&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//Nested Rule3&amp;nbsp; (12 weeks are outside the Christmas period)&lt;BR /&gt;if(Date(WeekStart( Today())-84, 'DD.MM.YYYY') &amp;lt;= '04.01.2016','Substact nothing Add nothing, build normal 12 weeks avg','ok')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have found many examples of rolling periods but none with exception weeks.&lt;BR /&gt;Before I start to work with nested conditions and hard coding dates I want to ask the experts for a better solution..&lt;BR /&gt;Which approach is recommended ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Klaus-Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 16:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-weeks-backwards-excluding-holiday-weeks/m-p/1083795#M360935</guid>
      <dc:creator>klaus_kapero</dc:creator>
      <dc:date>2016-02-09T16:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling weeks backwards excluding holiday weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-weeks-backwards-excluding-holiday-weeks/m-p/1083796#M360936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is just an idea; I think you can add a serial week field to the calendar; you can calculate the last 12 weeks as week today - 12; you'll get 12 or 14 weeks because week 51, 52 and 53 have the same week serial&lt;/P&gt;&lt;P&gt;&lt;EM&gt;............&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2015_50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n-1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2015_51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;2015_52&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 13.3333px;"&gt;2015_53&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 13.3333px;"&gt;2016_01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n+1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 13.3333px;"&gt;2016_02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n+2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;............&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 21:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-weeks-backwards-excluding-holiday-weeks/m-p/1083796#M360936</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-02-09T21:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling weeks backwards excluding holiday weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-weeks-backwards-excluding-holiday-weeks/m-p/1083797#M360937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Additional Information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have build the nested if, it works, but it is hard coded:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())-84, 'DD.MM.YYYY') &amp;lt;= '21.12.2015',&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Substract week 52, substract week 53, Add Minus_week13, Add Minus_week14&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_KW_Mo_Verbrauch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(vD_WeekToday_Start_12)&amp;lt;=$(vD_WeekToday_End_01)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Verbrauch_G&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; -&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_KW_Mo_Verbrauch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=21.12.2015&amp;lt;=27.12.2015'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Verbrauch_G&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// minus week 52&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_KW_Mo_Verbrauch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=28.12.2015&amp;lt;=03.01.2016'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Verbrauch_G&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// minus week 53&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;+&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_KW_Mo_Verbrauch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(vD_WeekToday_Start_13)&amp;lt;=$(vD_WeekToday_End_13)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Verbrauch_G&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// plus week -13&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;+&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_KW_Mo_Verbrauch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(vD_WeekToday_Start_14)&amp;lt;=$(vD_WeekToday_End_14)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Verbrauch_G&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// plus week -14&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// --------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())-84, 'DD.MM.YYYY') &amp;lt;= '28.12.2015',&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Substract week 53, Add Minus_week13&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_KW_Mo_Verbrauch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(vD_WeekToday_Start_12)&amp;lt;=$(vD_WeekToday_End_01)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Verbrauch_G&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; -&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_KW_Mo_Verbrauch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=28.12.2015&amp;lt;=03.01.2016'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Verbrauch_G&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// minus week 53&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;+&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_KW_Mo_Verbrauch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(vD_WeekToday_Start_13)&amp;lt;=$(vD_WeekToday_End_13)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Verbrauch_G&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// plus week -13&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// --------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())-84, 'DD.MM.YYYY') &amp;lt;= '04.01.2016',&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Substract nothing, Add nothing, build normal 12 weeks avg&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_KW_Mo_Verbrauch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(vD_WeekToday_Start_12)&amp;lt;=$(vD_WeekToday_End_01)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Verbrauch_G&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; ),&lt;BR /&gt; 'ok')))&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Klaus-Peter&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 13:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-weeks-backwards-excluding-holiday-weeks/m-p/1083797#M360937</guid>
      <dc:creator>klaus_kapero</dc:creator>
      <dc:date>2016-02-10T13:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling weeks backwards excluding holiday weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-weeks-backwards-excluding-holiday-weeks/m-p/1083798#M360938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use a master-calendar which considered the working-days and the holidays with a flag for them and a customized week-counter (maybe excluding weeks with less then four workingdays or whatever you need) so that I could use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; CustomizedWeekCounter = {"&amp;gt;=$(=max(CustomizedWeekCounter) - 12)"}&amp;gt;} Verbrauch_G)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get such a master-calendar, see: &lt;A href="https://community.qlik.com/docs/DOC-14220"&gt;Master Calendar with movable holidays&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 09:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-weeks-backwards-excluding-holiday-weeks/m-p/1083798#M360938</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-02-12T09:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling weeks backwards excluding holiday weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-weeks-backwards-excluding-holiday-weeks/m-p/1083799#M360939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marcus for the quick reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the 'Master Calendar with movable Holidays'&amp;nbsp; is one of the best calendars, I have ever seen for german issues.&lt;/P&gt;&lt;P&gt;I will link it to my main application and try to build the Holiday weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards so far.&lt;/P&gt;&lt;P&gt;Klaus-Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-weeks-backwards-excluding-holiday-weeks/m-p/1083799#M360939</guid>
      <dc:creator>klaus_kapero</dc:creator>
      <dc:date>2016-02-12T11:34:26Z</dc:date>
    </item>
  </channel>
</rss>

