<?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: Custom Master Calendar for Each Country in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-Master-Calendar-for-Each-Country/m-p/883938#M1003446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't generate different calendars else create three different workday-flags within the calendar. I create such workday-flag of 0 or 1 per nested if-loop over weekday and an applymap() to holidays to define if a day is a workday or not and use then simply a sum(workdayFlag) within the ui. In your case you would have three flags which you set manually within the expressions - but this could be also automated matched per pick(match()) expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2015 06:39:33 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-06-01T06:39:33Z</dc:date>
    <item>
      <title>Custom Master Calendar for Each Country</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Master-Calendar-for-Each-Country/m-p/883936#M1003444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create a custom master calendar for each country based on their weekend. The weekend for each country should be labelled based on the weekend for that country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My generic calendar - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMax:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Min([week]) As MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max([week]) As MaxDate&lt;/P&gt;&lt;P&gt;FROM dates.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = Num(Peek('MinDate', 0, 'MinMax'));&lt;/P&gt;&lt;P&gt;LET vMaxDate = Num(Peek('MaxDate', 0, 'MinMax'));&lt;/P&gt;&lt;P&gt;DROP TABLE MinMax;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempCal:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; date($(vMinDate) + rowno() - 1) As TempDate&lt;/P&gt;&lt;P&gt;AutoGenerate&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vMaxDate) - $(vMinDate) + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The country weekend information comes from another table in the below format - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country_Weekend:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; country_id As [Country ID]&lt;/P&gt;&lt;P&gt;&amp;nbsp; , weekend As [Country Weekend]&lt;/P&gt;&lt;P&gt;FROM country.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weekend can take values like 5,6 or 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will eventually be using this information for calculating the number of working days for each country based on the user selections of dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 05:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Master-Calendar-for-Each-Country/m-p/883936#M1003444</guid>
      <dc:creator />
      <dc:date>2015-06-01T05:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Master Calendar for Each Country</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Master-Calendar-for-Each-Country/m-p/883937#M1003445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that possible to provide app with sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 05:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Master-Calendar-for-Each-Country/m-p/883937#M1003445</guid>
      <dc:creator />
      <dc:date>2015-06-01T05:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Master Calendar for Each Country</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Master-Calendar-for-Each-Country/m-p/883938#M1003446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't generate different calendars else create three different workday-flags within the calendar. I create such workday-flag of 0 or 1 per nested if-loop over weekday and an applymap() to holidays to define if a day is a workday or not and use then simply a sum(workdayFlag) within the ui. In your case you would have three flags which you set manually within the expressions - but this could be also automated matched per pick(match()) expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 06:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Master-Calendar-for-Each-Country/m-p/883938#M1003446</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-06-01T06:39:33Z</dc:date>
    </item>
  </channel>
</rss>

