<?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 Create Indicator for 4, 8, and 13 weeks ago in Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Indicator-for-4-8-and-13-weeks-ago-in-Calendar/m-p/414431#M488693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QlikViewers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question that I just not can find a good solution for.&lt;BR /&gt;I have build a MasterCalendar from a specific Excel file from our Customer (The customer has created his own financial calendar in Excel).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create an indicator in the calendar for al the weeks that are this week, 4, 8 and 13 for weeks ago but also the weeks This week, 4, 8 and 13 weeks ago last year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create an indicator for easy use in set analysis so I can compare week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2012 17:34:50 GMT</pubDate>
    <dc:creator>jjordaan</dc:creator>
    <dc:date>2012-12-06T17:34:50Z</dc:date>
    <item>
      <title>Create Indicator for 4, 8, and 13 weeks ago in Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Indicator-for-4-8-and-13-weeks-ago-in-Calendar/m-p/414431#M488693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QlikViewers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question that I just not can find a good solution for.&lt;BR /&gt;I have build a MasterCalendar from a specific Excel file from our Customer (The customer has created his own financial calendar in Excel).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create an indicator in the calendar for al the weeks that are this week, 4, 8 and 13 for weeks ago but also the weeks This week, 4, 8 and 13 weeks ago last year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create an indicator for easy use in set analysis so I can compare week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 17:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Indicator-for-4-8-and-13-weeks-ago-in-Calendar/m-p/414431#M488693</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-12-06T17:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create Indicator for 4, 8, and 13 weeks ago in Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Indicator-for-4-8-and-13-weeks-ago-in-Calendar/m-p/414432#M488694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeroen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the function inweek() which allows you to check whether the first parameter date lies within the week that the second parameter date belongs to. This function returns true (-1) if it is the case. So for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-1 * rangemin(inweek(MyDateField,today()),inweek(MyDateField,addyears(today(),-1))) as InCurrentWeek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return true if the date is in the current week or in the same week last year. It should be pretty easy for you to extrapolate this to do the 4, 8 , 13 week logic. Final note: since it's a fiscal calendar, you may need to use the 3rd parameter of the function to shift things around. See the Help file for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 20:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Indicator-for-4-8-and-13-weeks-ago-in-Calendar/m-p/414432#M488694</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-06T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create Indicator for 4, 8, and 13 weeks ago in Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Indicator-for-4-8-and-13-weeks-ago-in-Calendar/m-p/414433#M488695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vlad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;I didn't know about this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only I can not see how to tune this function so there will be an indicator if a day lays in the past 4 or 8 or 13 weeks ago?&lt;/P&gt;&lt;P&gt;Maybe I have to specify my question a little bit more.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The 4 Weeks Ago Indicator has to mark a date If the date is between today and 4 weeks ago.&lt;/P&gt;&lt;P&gt;The 8 Weeks Ago Indicator has to mark a date If the date is between today and 8 weeks ago.&lt;/P&gt;&lt;P&gt;The 13 Weeks Ago Indicator has to mark a date If the date is between today and 13 weeks ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to compare it with the the 4, 8 and 13 weeks last year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the InWeek function it will only indicates the dates that are belonging 4, 8 or 13 weeks ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 07:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Indicator-for-4-8-and-13-weeks-ago-in-Calendar/m-p/414433#M488695</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-12-07T07:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create Indicator for 4, 8, and 13 weeks ago in Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Indicator-for-4-8-and-13-weeks-ago-in-Calendar/m-p/414434#M488696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see. Here's an example using 4 weeks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((MyDateField &amp;lt;= today() and MyDateField &amp;gt;= weekstart(today()-28)) OR (MyDateField &amp;lt;= addyears(today(),-1) and MyDateField &amp;gt;= weekstart(addyears(today(),-1)-28),1) as InCurrent4Week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 13:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Indicator-for-4-8-and-13-weeks-ago-in-Calendar/m-p/414434#M488696</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-07T13:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create Indicator for 4, 8, and 13 weeks ago in Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Indicator-for-4-8-and-13-weeks-ago-in-Calendar/m-p/414435#M488697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vlad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I was looking for.&lt;/P&gt;&lt;P&gt;The solution is much easier then I was thinking about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time and help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 13:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Indicator-for-4-8-and-13-weeks-ago-in-Calendar/m-p/414435#M488697</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-12-07T13:31:09Z</dc:date>
    </item>
  </channel>
</rss>

