<?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 Requirement using date functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135119#M372658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have requirement where i need to show a multibox/list box something like below values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select from below list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yesterday&lt;/P&gt;&lt;P&gt;Lastweek&lt;/P&gt;&lt;P&gt;This week including Lastweek&lt;/P&gt;&lt;P&gt;Last two weeks&lt;/P&gt;&lt;P&gt;This month&lt;/P&gt;&lt;P&gt;This month including last month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can able to create these date, however i need to link them with my date field. And how can i show them in list box??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide me some ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 17:10:20 GMT</pubDate>
    <dc:creator>raju_salmon</dc:creator>
    <dc:date>2016-06-16T17:10:20Z</dc:date>
    <item>
      <title>Requirement using date functions</title>
      <link>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135119#M372658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have requirement where i need to show a multibox/list box something like below values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select from below list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yesterday&lt;/P&gt;&lt;P&gt;Lastweek&lt;/P&gt;&lt;P&gt;This week including Lastweek&lt;/P&gt;&lt;P&gt;Last two weeks&lt;/P&gt;&lt;P&gt;This month&lt;/P&gt;&lt;P&gt;This month including last month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can able to create these date, however i need to link them with my date field. And how can i show them in list box??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide me some ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 17:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135119#M372658</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-06-16T17:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement using date functions</title>
      <link>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135120#M372659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create flags for all of these in the master calendar and then link the flags to a table which allows you to select the names&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINKTable:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;FieldName, YesterdayFlag, LastWeekFlag, ....&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Yesterday, 1, 0&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Lastweek, 0, 1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This week including Lastweek, 0, 0&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Last two weeks, 0, 0&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This month, 0, 0&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This month including last month, 0, 0&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and so on... where YesterdayFlag will link to MasterCalendar.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;It will form a synthetic key. If you are concerned about it, you can use a new key using AutoNumber function at the end.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HTH&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 17:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135120#M372659</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-16T17:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement using date functions</title>
      <link>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135121#M372660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try Sunny, thanks for information...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 17:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135121#M372660</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-06-16T17:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement using date functions</title>
      <link>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135122#M372661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone please give me any other solution for this? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 17:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135122#M372661</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-06-16T17:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement using date functions</title>
      <link>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135123#M372662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what was the outcome of your test of Sunny's solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 21:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135123#M372662</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-06-16T21:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement using date functions</title>
      <link>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135124#M372663</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;without being sure how your flags are defined, one solution might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_221257_Pic2.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128239_QlikCommunity_Thread_221257_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_221257_Pic1.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/128240_QlikCommunity_Thread_221257_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14661171310886494" jivemacro_uid="_14661171310886494"&gt;
&lt;P&gt;tabCalendar:&amp;nbsp; &lt;/P&gt;
&lt;P&gt;LOAD *,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(Date) as Day,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDay(Date) as WeekDay,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(Date) as Week,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekName(Date) as WeekName,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date) as Month,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date) as MonthName,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Q'&amp;amp;Ceil(Month(Date)/3),Ceil(Month(Date)/3)) as Quarter,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuarterName(Date) as QuarterName,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date) as Year,&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekYear(Date) as WeekYear,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -(Date=Today()-1) as Yesterday,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -InWeek(Date,Today(),-1) as Lastweek,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -(InWeek(Date,Today(),-1) or InWeek(Date,Today(),0)) as [This week including Lastweek],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -(Date&amp;gt;Today()-14 and Date&amp;lt;=Today()) as [Last two weeks],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -InMonth(Date,Today(),0) as [This month],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -(InMonth(Date,Today(),-1) or InMonth(Date,Today(),0)) as [This month including last month];&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;LOAD Date(MinDate+IterNo()-1) as Date&amp;nbsp; &lt;/P&gt;
&lt;P&gt;While MinDate+IterNo()-1 &amp;lt;= Today();&amp;nbsp; &lt;/P&gt;
&lt;P&gt;LOAD MakeDate(2015) as MinDate&amp;nbsp; &lt;/P&gt;
&lt;P&gt;AutoGenerate 1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabTemp:&lt;/P&gt;
&lt;P&gt;CrossTable (DateFlag,FlagValue,11)&lt;/P&gt;
&lt;P&gt;LOAD * Resident tabCalendar;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabDateFlags:&lt;/P&gt;
&lt;P&gt;LOAD Date, DateFlag&lt;/P&gt;
&lt;P&gt;Resident tabTemp&lt;/P&gt;
&lt;P&gt;Where FlagValue;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tabTemp;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 22:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135124#M372663</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-06-16T22:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement using date functions</title>
      <link>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135125#M372664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Macro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your time on this. This is excellent, working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we control these dates based on input value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, i will provide a box where user first enter a number then select any of above fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If he enter 3, and select "Last days completed" field, then it has to select last 3 completed days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 06:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135125#M372664</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-06-20T06:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement using date functions</title>
      <link>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135126#M372665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on Macro reply, i can able to create almost similar flags which is required for my dashboard, however i need to control them with variable input values, any suggestions on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I will provide below two flags to user with input box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last days including today,&lt;/P&gt;&lt;P&gt;Last weeks including this week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if user enter 3 in input box, and select 'Last days including today', last 3 days including today should be selected. or if he selects 'Last weeks including this week' then last 3 weeks including this week should be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 06:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135126#M372665</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-06-20T06:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement using date functions</title>
      <link>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135127#M372666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestion macro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 06:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Requirement-using-date-functions/m-p/1135127#M372666</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-06-21T06:28:30Z</dc:date>
    </item>
  </channel>
</rss>

