<?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: Calender Creation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259269#M865454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just create your calendar in excel. One excel file for the next 10 years and for the next 10 year you won't have to worry about it anymore. Simply load the excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStartDate = Num(MakeDate(2016));&lt;/P&gt;&lt;P&gt;LET vEndDate = MakeDate(2100)-1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Date - Pick(WeekDay(Date)+1,0,1,2,3,4,5,6)) as Month&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date($(vStartDate) + RecNo() -1) as Date&lt;/P&gt;&lt;P&gt;AutoGenerate $(vEndDate) - $(vStartDate) + 1 ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2016 11:17:32 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-12-14T11:17:32Z</dc:date>
    <item>
      <title>Calender Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259264#M865449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is to create calendar month starting day from Monday to Sunday,if month is end with other day except Sunday then it should calculate date from next month up to Sunday&lt;/P&gt;&lt;P&gt;for example if i select Jan-2016 (starting Monday in January is 4th &amp;amp; ending month 31st is Sunday),then data should fetch from 4th January2016 to 31st January 2016,&lt;/P&gt;&lt;P&gt;for example if i select Feb-2016 (starting Monday in February is 1st &amp;amp; ending month 29th is Monday ),then data should fetch from 1st Feb2016 to 6th March2016,&lt;/P&gt;&lt;P&gt;if i select May-2016 (starting Monday in May is 2nd&amp;nbsp; &amp;amp; ending month&amp;nbsp; 31th&amp;nbsp; is Tuesday ),then data should fetch from 2nd May2016 to 5th June 2016,&lt;/P&gt;&lt;P&gt;if i select June-2016(starting Monday in June is 6th&amp;nbsp; &amp;amp; ending month&amp;nbsp; 30th&amp;nbsp; is Thursday ),data should fetch from 6th June2016 to 3rd July 2016,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA.. sample data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259264#M865449</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259265#M865450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You already have your calendar in excel. Load the data from that excel file as your calendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 09:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259265#M865450</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-14T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259266#M865451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;for example if i select Jan-2016 (starting Monday in January is 4th &amp;amp; ending month 31st is Sunday),then data should fetch from 4th January2016 to 31st January 2016,&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Where you want to show that, I mean Straight / Pivot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take &lt;STRONG&gt;MonthYear&lt;/STRONG&gt; as Dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then try expression like this?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;MonthYear = {"&amp;gt;=" &amp;amp; $(=If(Day(MonthStart(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YourDateFieldName&lt;/STRONG&gt;)) = 'Sun', YourDateFieldName) "&amp;lt;=" &amp;amp;&amp;nbsp; $(=If(Day(MonthEnd(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YourDateFieldName&lt;/STRONG&gt;)) = 'Sun', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;YourDateFieldName&lt;/STRONG&gt;&lt;/SPAN&gt;)}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Aggr(Sum({$&amp;lt;MonthYear = {"&amp;gt;=" &amp;amp; $(=If(Day(MonthStart(MonthYear)) = 'Sun', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;YourDateFieldName&lt;/STRONG&gt;&lt;/SPAN&gt;) "&amp;lt;=" &amp;amp;&amp;nbsp; $(=If(Day(MonthEnd(MonthYear)) = 'Sun', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;YourDateFieldName&lt;/STRONG&gt;&lt;/SPAN&gt;)}&amp;gt;}Sales),MonthYear,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;YourDateFieldName&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 09:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259266#M865451</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-12-14T09:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259267#M865452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually that attachment is required output format.in source i am getting columns like&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;Datefield&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;day&lt;/TD&gt;&lt;TD width="64"&gt;sales&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;so based on Datefield and day column i have to create Month column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 10:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259267#M865452</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2016-12-14T10:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259268#M865453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as per your logic :&lt;/P&gt;&lt;P&gt;if i select May2016 it's fetching data from 1st May 2016 to 29th May2016,but actually we need to fetch data&amp;nbsp;&amp;nbsp; "from 2nd May2016 to 5th June 2016",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per my requirement if i select May-2016 (starting Monday in May is 2nd&amp;nbsp; &amp;amp; ending month&amp;nbsp; 31th&amp;nbsp; is Tuesday ),then data should fetch from 2nd May2016 to 5th June 2016,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 10:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259268#M865453</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2016-12-14T10:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calender Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259269#M865454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just create your calendar in excel. One excel file for the next 10 years and for the next 10 year you won't have to worry about it anymore. Simply load the excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStartDate = Num(MakeDate(2016));&lt;/P&gt;&lt;P&gt;LET vEndDate = MakeDate(2100)-1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Date - Pick(WeekDay(Date)+1,0,1,2,3,4,5,6)) as Month&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date($(vStartDate) + RecNo() -1) as Date&lt;/P&gt;&lt;P&gt;AutoGenerate $(vEndDate) - $(vStartDate) + 1 ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 11:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calender-Creation/m-p/1259269#M865454</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-14T11:17:32Z</dc:date>
    </item>
  </channel>
</rss>

