<?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: Stop calc at current year max week number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090173#M927315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the expression for 2014/15 should be (look at the image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({&amp;lt; FinYear = {'2014/15'}, FinWeek={"&amp;lt;=$(=(max({$ &amp;lt;FinYear={'$(=maxstring(FinYear))'}&amp;gt;} FinWeek)))"} &lt;/EM&gt;&lt;EM&gt;&amp;gt;} Count)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Replace the same expression in the difference&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119730_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2016 18:50:52 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2016-03-29T18:50:52Z</dc:date>
    <item>
      <title>Stop calc at current year max week number</title>
      <link>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090171#M927313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to compare data from two distinct years, &lt;SPAN style="text-decoration: underline;"&gt;but only to the latest &lt;SPAN style="color: #575757; text-decoration: underline;"&gt;week&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; text-decoration: underline;"&gt; from the current year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I have 9 weeks of data in the current year I want to stop the calculation at week 9 in each year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a Qvw to explain more fully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this is self explanatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&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/Stop-calc-at-current-year-max-week-number/m-p/1090171#M927313</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stop calc at current year max week number</title>
      <link>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090172#M927314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119729_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Calculation stops at week 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching the qvw as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 18:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090172#M927314</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-03-29T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Stop calc at current year max week number</title>
      <link>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090173#M927315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the expression for 2014/15 should be (look at the image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({&amp;lt; FinYear = {'2014/15'}, FinWeek={"&amp;lt;=$(=(max({$ &amp;lt;FinYear={'$(=maxstring(FinYear))'}&amp;gt;} FinWeek)))"} &lt;/EM&gt;&lt;EM&gt;&amp;gt;} Count)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Replace the same expression in the difference&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119730_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 18:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090173#M927315</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-03-29T18:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Stop calc at current year max week number</title>
      <link>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090174#M927316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this as your expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(sum({&amp;lt; FinYear = {'2015/16'}&amp;gt;} Count) &amp;gt; 0, sum({&amp;lt; FinYear = {'2015/16'}&amp;gt;} Count) - sum({&amp;lt; FinYear = {'2014/15'}&amp;gt;} Count))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119762_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 02:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090174#M927316</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-30T02:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Stop calc at current year max week number</title>
      <link>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090175#M927317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or this should also work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(Avg({&amp;lt; FinYear = {'2015/16'}&amp;gt;} Count))) &amp;gt; 0, sum({&amp;lt; FinYear = {'2015/16'}&amp;gt;} Count) - sum({&amp;lt; FinYear = {'2014/15'}&amp;gt;} Count))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/119763_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 02:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090175#M927317</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-30T02:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stop calc at current year max week number</title>
      <link>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090176#M927318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MaxGro - thanks for this very much appreciated - just what I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 07:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090176#M927318</guid>
      <dc:creator />
      <dc:date>2016-03-31T07:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stop calc at current year max week number</title>
      <link>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090177#M927319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sinan not quite the way I needed this time, thanks for the pointers in any case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 07:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090177#M927319</guid>
      <dc:creator />
      <dc:date>2016-03-31T07:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Stop calc at current year max week number</title>
      <link>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090178#M927320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny - both examples work - and the principles you employed will be helpful as I develop the overall dash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 07:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stop-calc-at-current-year-max-week-number/m-p/1090178#M927320</guid>
      <dc:creator />
      <dc:date>2016-03-31T07:34:15Z</dc:date>
    </item>
  </channel>
</rss>

