<?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 Calculation of weeks syntax. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-of-weeks-syntax/m-p/498050#M186126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have the following Scenario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am calculating the week no whereby a product will need to be reordered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use a factor whereby i have calculated the avg, for example if the availability of the product is 500 pieces and the consumption is a thousand on average the factor 0.5, which equals that the product will run out this week.&lt;/P&gt;&lt;P&gt;this works fine in the calculation below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however on the otherside whereby i wish to see in the future how long the product will last = week no i am getting some strange results &lt;/P&gt;&lt;P&gt;for example 201369 .it should show 201417?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way to code this to show the 201417 instead of 201369?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax: &lt;/P&gt;&lt;P&gt;if( Column(3) / Column(5) &amp;lt;1, max([Year Week]), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max([Year Week])&lt;/P&gt;&lt;P&gt; + (round(Column(3) / Column(5))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 09:50:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-01T09:50:17Z</dc:date>
    <item>
      <title>Calculation of weeks syntax.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-of-weeks-syntax/m-p/498050#M186126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have the following Scenario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am calculating the week no whereby a product will need to be reordered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use a factor whereby i have calculated the avg, for example if the availability of the product is 500 pieces and the consumption is a thousand on average the factor 0.5, which equals that the product will run out this week.&lt;/P&gt;&lt;P&gt;this works fine in the calculation below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however on the otherside whereby i wish to see in the future how long the product will last = week no i am getting some strange results &lt;/P&gt;&lt;P&gt;for example 201369 .it should show 201417?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way to code this to show the 201417 instead of 201369?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax: &lt;/P&gt;&lt;P&gt;if( Column(3) / Column(5) &amp;lt;1, max([Year Week]), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max([Year Week])&lt;/P&gt;&lt;P&gt; + (round(Column(3) / Column(5))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 09:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-of-weeks-syntax/m-p/498050#M186126</guid>
      <dc:creator />
      <dc:date>2013-10-01T09:50:17Z</dc:date>
    </item>
  </channel>
</rss>

