<?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: Mapping in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581623#M216034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replay @Ralf Becher&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I want create only one flag containing&amp;nbsp; ALL these thing i.e holiday,Weekday,weekend&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 12:05:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-13T12:05:43Z</dc:date>
    <item>
      <title>Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581617#M216028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;PFA&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;i have holiday Data of calender year state wise, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;like &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;LOAD State, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HoliDay, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Dates,'DD-MM-YYYY') as Dates&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;then i Created&amp;nbsp; Dates of year&amp;nbsp; by following way&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;Date_genration:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;LOAD&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-size: 10pt; line-height: 1.5em;"&gt;Date(Date#(20131231,'YYYYMMDD')+RecNo(),'DD-MM-YYYY') AS Dates&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;AutoGenerate Ceil (YearEnd(Today())) -YearStart(Today());&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;then i joined&amp;nbsp; &lt;/SPAN&gt;these&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; two tables &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt;now i want check when their is holiday then which type it is like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;first i want to check whether that is &lt;STRONG&gt;holiday&lt;/STRONG&gt; or not by &lt;/SPAN&gt;comparing &lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt; with data stored above &lt;STRONG&gt;Data Table&lt;/STRONG&gt; if yes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 10pt;"&gt; then i want to check its day type like &lt;STRONG&gt;weekday&lt;/STRONG&gt; or &lt;STRONG&gt;weekend&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;suppose that i have holiday on 1st &lt;/SPAN&gt;&lt;SPAN style="line-height: 19.5px;"&gt;Jan&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;nbsp; suppose it &lt;/SPAN&gt;&lt;SPAN style="line-height: 19.5px;"&gt;Monday&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;nbsp; then its should have flag weekday&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: small;"&gt;suppose that i have holiday on 1st &lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;Jan&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp; suppose it Sunday&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;&amp;nbsp; then its should have flag weekend&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; color: #000000; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; color: #000000; line-height: 1.5em;"&gt;&lt;STRONG&gt;this way we will get three field in flag Holiday,Weekday,WeekEnd&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: small;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: small;"&gt;i have tried but i can't succeed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: small;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: small;"&gt;thanks in Advance&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 10:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581617#M216028</guid>
      <dc:creator />
      <dc:date>2014-02-13T10:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581618#M216029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to check data present in other table in qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 11:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581618#M216029</guid>
      <dc:creator />
      <dc:date>2014-02-13T11:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581619#M216030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would do it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13922920091898381" jivemacro_uid="_13922920091898381" modifiedtitle="true"&gt;
&lt;P&gt;Date_genration:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Date(Date#(20131231,'YYYYMMDD')+RecNo(),'DD-MM-YYYY') AS Dates&lt;/P&gt;
&lt;P&gt;AutoGenerate Ceil (YearEnd(Today())) -YearStart(Today());&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LEFT Join&lt;/P&gt;
&lt;P&gt;LOAD DISTINCT &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Dates,'DD-MM-YYYY') as Dates, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as Holiday_Flag, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(WeekDay(Dates)&amp;lt;6, 1, Null()) as Weekday_Flag,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(WeekDay(Dates)&amp;gt;=6, 1, Null()) as Weekend_Flag&lt;/P&gt;
&lt;P&gt;FROM fest.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13922920119148270" jivemacro_uid="_13922920119148270" modifiedtitle="true"&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 11:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581619#M216030</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-02-13T11:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581620#M216031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the table viewer and if possible then try calling that fields of the table in a table box.&lt;/P&gt;&lt;P&gt;Even you data model is having the synthetic keys . You are also not using the mapping function whereas you have already used mapping Load in your script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 11:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581620#M216031</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-02-13T11:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581621#M216032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that data model is wrong&amp;nbsp; that's why after join i have stopped &lt;/P&gt;&lt;P&gt;i have tried on that data model many ways do do that my flag thing when i have tried last time then the synthetic key is created ,so forget that synthetic key&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;now tell me how to cross check whether that holiday is present in that Table or not when creating flag dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;containing holiday ,weekday ,weeend&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581621#M216032</guid>
      <dc:creator />
      <dc:date>2014-02-13T12:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581622#M216033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;that data model is wrong&amp;nbsp; that's why after join i have stopped&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;i have tried on that data model many ways do do that my flag thing when i have tried last time then the synthetic key is created ,so forget that synthetic key&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;now tell me how to cross check whether that holiday is present in that Table or not when creating flag dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;containing holiday ,weekday ,weeknd&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581622#M216033</guid>
      <dc:creator />
      <dc:date>2014-02-13T12:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581623#M216034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replay @Ralf Becher&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I want create only one flag containing&amp;nbsp; ALL these thing i.e holiday,Weekday,weekend&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581623#M216034</guid>
      <dc:creator />
      <dc:date>2014-02-13T12:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581624#M216035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but Holiday is imdependent from weekday. You can have Holiday on weekday or weekend..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581624#M216035</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-02-13T12:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581625#M216036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this is any help.&amp;nbsp; I don't keep holidays in a separate file but create in the script.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5741"&gt;http://community.qlik.com/docs/DOC-5741&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581625#M216036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-13T12:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581626#M216037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;Date_genration:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date(Date#(20131231,'YYYYMMDD')+RecNo(),'DD-MM-YYYY') AS Dates&lt;/P&gt;&lt;P&gt;AutoGenerate Ceil (YearEnd(Today())) -YearStart(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT Join&lt;/P&gt;&lt;P&gt;LOAD DISTINCT &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Dates,'DD-MM-YYYY') as Dates, &lt;/P&gt;&lt;P&gt;&amp;nbsp; 1 as Holiday_Flag, &lt;/P&gt;&lt;P&gt;&amp;nbsp; if(WeekDay(Dates)&amp;lt;6, 1, Null()) as Weekday_Flag,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(WeekDay(Dates)&amp;gt;=6, 1, Null()) as Weekend_Flag&lt;/P&gt;&lt;P&gt;FROM fest.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;text(date(Dates,'WWW')) as Dayname,&lt;/P&gt;&lt;P&gt;if((text(date(Dates,'WWW'))='Sat' or text(date(Dates,'WWW'))='Sun') and len(Holiday_Flag)&amp;gt;0,'Weekend',if(&lt;/P&gt;&lt;P&gt;(text(date(Dates,'WWW'))&amp;lt;&amp;gt;'Sat' or text(date(Dates,'WWW'))&amp;lt;&amp;gt;'Sun') and len(Holiday_Flag)&amp;gt;0,'Weekday' )) as HOLIDAY_STATUS&lt;/P&gt;&lt;P&gt;resident Date_genration;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Date_genration;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581626#M216037</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-02-13T12:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581627#M216038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581627#M216038</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-02-13T12:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581628#M216039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most simple variant:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13922965870868548 jive_macro_code" jivemacro_uid="_13922965870868548" modifiedtitle="true"&gt;
&lt;P&gt;Date_genration:&lt;/P&gt;
&lt;P&gt;LOAD DISTINCT &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Dates,'DD-MM-YYYY') as Dates, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Holiday' as Flag&lt;/P&gt;
&lt;P&gt;FROM fest.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD *, if(WeekDay(Dates)&amp;lt;6, 'Weekday', 'Weekend') as Flag Where Not Exists(Dates);&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#(20131231,'YYYYMMDD')+RecNo(),'DD-MM-YYYY') AS Dates&lt;/P&gt;
&lt;P&gt;AutoGenerate Ceil (YearEnd(Today())) -YearStart(Today());&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13922966082265440" jivemacro_uid="_13922966082265440" modifiedtitle="true"&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 13:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581628#M216039</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-02-13T13:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581629#M216040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi @prem u have not used what data i given for state holiday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 13:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581629#M216040</guid>
      <dc:creator />
      <dc:date>2014-02-13T13:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581630#M216041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ralf u have not used State holiday data for mapping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 13:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581630#M216041</guid>
      <dc:creator />
      <dc:date>2014-02-13T13:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581631#M216042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does it mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 13:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581631#M216042</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-02-13T13:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581632#M216043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need a set of dates by state?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 13:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581632#M216043</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-02-13T13:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581633#M216044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i have attached state wise holiday list&amp;nbsp; please find excel file for that &lt;/P&gt;&lt;P&gt;i need this data state wise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 13:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581633#M216044</guid>
      <dc:creator />
      <dc:date>2014-02-13T13:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581634#M216045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But what when Holiday is on two states? Do you need a full set of dates (a calendar) for all states?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 13:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581634#M216045</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-02-13T13:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581635#M216046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i need complete set of Data of states&lt;/P&gt;&lt;P&gt;consider that holiday according that state&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 13:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581635#M216046</guid>
      <dc:creator />
      <dc:date>2014-02-13T13:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping/m-p/581636#M216047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here we go:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13923003300387686" jivemacro_uid="_13923003300387686" modifiedtitle="true"&gt;
&lt;P&gt;States:&lt;/P&gt;
&lt;P&gt;LOAD DISTINCT &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; State as StateName&lt;/P&gt;
&lt;P&gt;FROM fest.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Let n=NoOfRows('States');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Holiday:&lt;/P&gt;
&lt;P&gt;LOAD DISTINCT &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; State &amp;amp; '_' &amp;amp; Date(Dates,'DD-MM-YYYY') as StateHoliday&lt;/P&gt;
&lt;P&gt;FROM fest.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i=0 to $(n)-1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vState = peek('StateName', $(i), 'States');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dates:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Dates, '$(vState)' as State, If(IsNull(Lookup('StateHoliday', 'StateHoliday', '$(vState)' &amp;amp; '_' &amp;amp; Date(Dates,'DD-MM-YYYY'), 'Holiday')), If(WeekDay(Dates)&amp;lt;6, 'Weekday', 'Weekend'), 'Holiday') as Flag;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Date(Date#(20131231,'YYYYMMDD')+RecNo(),'DD-MM-YYYY') AS Dates&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate Ceil (YearEnd(Today())) -YearStart(Today());&lt;/P&gt;
&lt;P&gt;NEXT&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Tables States, Holiday;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 14:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping/m-p/581636#M216047</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-02-13T14:06:33Z</dc:date>
    </item>
  </channel>
</rss>

