<?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: Current Week-4 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595496#M220558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I have an inputbox, with two fields."Week1" and "Week2"&lt;/P&gt;&lt;P&gt;By default my&lt;/P&gt;&lt;P&gt; "Week 2" should be my Current week.&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Week1" should be&amp;nbsp; current week minus 4&lt;/P&gt;&lt;P&gt;Week field is like this:&lt;/P&gt;&lt;P&gt;2013 W05&lt;/P&gt;&lt;P&gt;2013W04&lt;/P&gt;&lt;P&gt;2013W03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(week-4) is not working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gowthami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jan 2014 14:53:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-31T14:53:08Z</dc:date>
    <item>
      <title>Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595492#M220554</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 need a week,which will be current week minus 4 week.How to achieve this in UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ex:&lt;/STRONG&gt;My Current Week: 2013 W05&lt;/P&gt;&lt;P&gt;Expected Week is:(Current week-4) ie) 2013W01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achieve this.Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gowthami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 14:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595492#M220554</guid>
      <dc:creator />
      <dc:date>2014-01-31T14:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595493#M220555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Max(Week)-4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;Week = {"$(=Max(Week))"}&amp;gt;}Sales)&amp;nbsp; // Max Week from selected weeks&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;Week = {"$(=Max(Week)-4)"}&amp;gt;}Sales)&amp;nbsp; // Max Week - 4 from selected weeks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 14:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595493#M220555</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-31T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595494#M220556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Gowthami&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why can't you just subtract 4*7 from your date? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 14:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595494#M220556</guid>
      <dc:creator />
      <dc:date>2014-01-31T14:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595495#M220557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you calculate your weeks from a date field I suggest you create it as a dual field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldA, FieldB, ...etc ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual( Year(MyDate) &amp;amp; 'W' &amp;amp; num(week(MyDate),'00') , weekstart(MyDate)) as MyWeek&lt;/P&gt;&lt;P&gt;From ...etc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way the MyWeek values will really still be dates (just shown like 2013W05) and you can subtract a number of days from it:&lt;/P&gt;&lt;P&gt;Expected Week = Current Week - 28&lt;/P&gt;&lt;P&gt;Current Week: max(MyWeek)&lt;/P&gt;&lt;P&gt;Expected Week: max(MyWeek)-28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you need to use the weekyear function instead of the year function. Look the weekyear function up in the help file to understand why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 14:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595495#M220557</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-31T14:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595496#M220558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I have an inputbox, with two fields."Week1" and "Week2"&lt;/P&gt;&lt;P&gt;By default my&lt;/P&gt;&lt;P&gt; "Week 2" should be my Current week.&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Week1" should be&amp;nbsp; current week minus 4&lt;/P&gt;&lt;P&gt;Week field is like this:&lt;/P&gt;&lt;P&gt;2013 W05&lt;/P&gt;&lt;P&gt;2013W04&lt;/P&gt;&lt;P&gt;2013W03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(week-4) is not working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gowthami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 14:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595496#M220558</guid>
      <dc:creator />
      <dc:date>2014-01-31T14:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595497#M220559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you have your brackets right, Max(Week)-4 =/= Max(Week-4)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 15:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595497#M220559</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-01-31T15:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595498#M220560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Max(Week)-4 will never work this way. Imagine week being 2014W01. What would be &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Max(Week)-4&lt;/SPAN&gt;? Go with Gysbert's suggestion (again &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 15:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595498#M220560</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-01-31T15:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595499#M220561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for you reply.I don't have any date fileld in my QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gowthami&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 16:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595499#M220561</guid>
      <dc:creator />
      <dc:date>2014-01-31T16:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595500#M220562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then you maybe should create one using the week information. This will be helpful further on as well in your development.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 16:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595500#M220562</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-01-31T16:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595501#M220563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could ask the person that created that qvd to put a date field in. That week field was created somewhere and most likely from a date field. Or ask him/her to create a dual field like I mentioned. Or ask him/her to at least add a numeric sequential week field so you have a field that can used in calculations to derive an earlier week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 16:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595501#M220563</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-31T16:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595502#M220564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gowthami&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;weekname&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())-24))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;weekname&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())-24)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 16:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595502#M220564</guid>
      <dc:creator>santharubban</dc:creator>
      <dc:date>2014-01-31T16:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Current Week-4</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595503#M220565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gowathami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your input box, how 2014 WK4 is coming?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it&amp;nbsp; by some calculation or direct from QVD/File?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also create new button and check is this formula working in this or not :&amp;nbsp; =Week(today())-1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 18:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Week-4/m-p/595503#M220565</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2014-01-31T18:58:09Z</dc:date>
    </item>
  </channel>
</rss>

