<?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 Difference in No.of Weeks? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-in-No-of-Weeks/m-p/1255818#M866475</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;I have used below formula in expression&amp;nbsp; to get the article No.of Weeks difference based on user selected year and week from list box,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=((vCurrYear-(min(TOTAL &amp;lt;ArticleNo&amp;gt; {&amp;lt;Year={'*'},Week= {"*"},Type={'Sales'},StoreName=&amp;gt;} Year(Date)))) *53)+&lt;/P&gt;&lt;P&gt;(vCurrentWeek-min(TOTAL &amp;lt;ArticleNo&amp;gt; {&amp;lt;Year={'*'},Week= {"*"},Type={'Sales'},StoreName=&amp;gt;} Week(AddYears(Date,(year(Date)-vCurrYear)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above week difference formula is working fine for current selected year but it's not working for historical year? do you have any suggestion? thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; vCurrYear&amp;nbsp; &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentWeek &lt;/SPAN&gt;--&amp;gt; created variable for user selected year &amp;amp; Week&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>devarasu07</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Difference in No.of Weeks?</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-No-of-Weeks/m-p/1255818#M866475</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;I have used below formula in expression&amp;nbsp; to get the article No.of Weeks difference based on user selected year and week from list box,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=((vCurrYear-(min(TOTAL &amp;lt;ArticleNo&amp;gt; {&amp;lt;Year={'*'},Week= {"*"},Type={'Sales'},StoreName=&amp;gt;} Year(Date)))) *53)+&lt;/P&gt;&lt;P&gt;(vCurrentWeek-min(TOTAL &amp;lt;ArticleNo&amp;gt; {&amp;lt;Year={'*'},Week= {"*"},Type={'Sales'},StoreName=&amp;gt;} Week(AddYears(Date,(year(Date)-vCurrYear)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above week difference formula is working fine for current selected year but it's not working for historical year? do you have any suggestion? thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; vCurrYear&amp;nbsp; &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;vCurrentWeek &lt;/SPAN&gt;--&amp;gt; created variable for user selected year &amp;amp; Week&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dev&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/Difference-in-No-of-Weeks/m-p/1255818#M866475</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

