<?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: Creating Customized Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-Customized-Calendar/m-p/1171637#M912124</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;Not sure if this helps u , but i have done something similar with the help of variables .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create 2 variable as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vStart:=DATE(num(today())-1 + num('06:00:00'),'DD.MM.YYYY hh:mm:ss') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vEnd :=DATE(num(today()) + num('05:59:59'),'DD.MM.YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126296_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then later ,changes at expression side like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/126297_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to include these 2 variables to those expression ,which should changes based on ur requirement (Yesterday 6 AM to today's 05:59:59)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give a try &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2016 03:57:10 GMT</pubDate>
    <dc:creator>amit_saini</dc:creator>
    <dc:date>2016-05-31T03:57:10Z</dc:date>
    <item>
      <title>Creating Customized Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Customized-Calendar/m-p/1171636#M912123</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;Please let me know how to create the custom calendar based on :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today ( starting from 7 AM to tomorrow 6:59 AM)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Yesterday ( yesterday 7 AM to today 6:59 AM )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Last 24 hours ( based on the current hour&amp;nbsp; it should get the last 24 hours time stamp )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;I have created&amp;nbsp; custom calendar for Current Month, Last Month&amp;nbsp; and Last 30 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vCurrMonth = Ceil(Today()-MonthStart(Today()));&lt;/P&gt;&lt;P&gt;Let vLastMonth = Ceil(MonthEnd(Today(), -1)-MonthStart(Today(), -1));&lt;/P&gt;&lt;P&gt;Let vCurr_Last = $(vLastMonth)+$(vCurrMonth);&lt;/P&gt;&lt;P&gt;Let v_lastMonthEnd = $(vCurrMonth)+1; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (vCurrMonth)&amp;gt;0 then&lt;/P&gt;&lt;P&gt;Selection_1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection_Name,Selection_Start_Value, Selection_End_Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Last 30 Days",30,-1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Current Month", $(vCurrMonth),-1&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Last Month",$(vCurr_Last), $(v_lastMonthEnd)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;Selection_1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection_Name,Selection_Start_Value, Selection_End_Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Last 30 Days",30,-1,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Last Month",$(vCurr_Last), $(v_lastMonthEnd)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Lakshmana Vepuri&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/Creating-Customized-Calendar/m-p/1171636#M912123</guid>
      <dc:creator>lakshmanvepuri</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Customized Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Customized-Calendar/m-p/1171637#M912124</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;Not sure if this helps u , but i have done something similar with the help of variables .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create 2 variable as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vStart:=DATE(num(today())-1 + num('06:00:00'),'DD.MM.YYYY hh:mm:ss') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vEnd :=DATE(num(today()) + num('05:59:59'),'DD.MM.YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126296_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then later ,changes at expression side like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/126297_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to include these 2 variables to those expression ,which should changes based on ur requirement (Yesterday 6 AM to today's 05:59:59)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give a try &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 03:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Customized-Calendar/m-p/1171637#M912124</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-05-31T03:57:10Z</dc:date>
    </item>
  </channel>
</rss>

