<?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: set analysis to make sum of sales of last n periods (Year or Month). in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242264#M863285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore selections in Month and Year fields and let Year Month drive your selections (indirectly)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;[Year - Month] = {"$(='&amp;gt;=' &amp;amp; Date(AddMonths([Year - Month] ,-3),'YYYY-MM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddMonths([Year - Month] ,-1),'YYYY-MM'))"}&lt;SPAN style="color: #ff0000;"&gt;, Month, Year&lt;/SPAN&gt;&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Dec 2016 12:42:23 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-28T12:42:23Z</dc:date>
    <item>
      <title>set analysis to make sum of sales of last n periods (Year or Month).</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242259#M863275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have sum of amount for last &lt;STRONG&gt;n&lt;/STRONG&gt; months in my set analysis equation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following fields.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Month like Jan,Feb,Mar&lt;/LI&gt;&lt;LI&gt;Year like 2014,2015,2016&lt;/LI&gt;&lt;LI&gt;[Year-Month] like [2014-12],[2015-01],[2015-02]&lt;/LI&gt;&lt;LI&gt;Amount&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select month "Mar" (2016) from Month field I should have sum of Amount of last &lt;STRONG&gt;3 &lt;/STRONG&gt;month (Dec 2015,Jan 2016 and Feb 2016).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using set analysis in my equation but its not working.&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Month={"&amp;gt;=$(Date(AddMonths([Year - Month] &amp;amp;'-01' ,&lt;STRONG&gt;-3&lt;/STRONG&gt;),'MMM'))) &amp;lt;=$(Date(AddMonths([Year - Month] &amp;amp;'-01' ,&lt;STRONG&gt;-1&lt;/STRONG&gt;),'MMM')))"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried same on Year but didn't find any success.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;Year={"&amp;gt;=$(Date(AddMonths([Year - Month] &amp;amp;'-01' ,&lt;STRONG&gt;-3&lt;/STRONG&gt;),'YYYY'))) &amp;lt;=$(Date(AddMonths([Year - Month] &amp;amp;'-01' ,&lt;STRONG&gt;-1&lt;/STRONG&gt;),'YYYY')))"}&amp;gt;} Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By changing values of -3 and -1 I can manage periods but still need help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot,&lt;/P&gt;&lt;P&gt;Parth&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/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242259#M863275</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to make sum of sales of last n periods (Year or Month).</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242260#M863276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patel,&lt;/P&gt;&lt;P&gt;Can you try this link once, might be it will useful to you.&lt;/P&gt;&lt;P&gt;&lt;A href="http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx" title="http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx"&gt;Set Analysis Wizard for QlikView | qlikblog.at&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Habib Shaik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 11:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242260#M863276</guid>
      <dc:creator />
      <dc:date>2016-12-28T11:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to make sum of sales of last n periods (Year or Month).</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242261#M863277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be give this a try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;[Year - Mont&lt;SPAN style="color: #ff0000;"&gt;h&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;]&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;{"$(='&amp;gt;=' &amp;amp; Date(AddMonths([Year - Month] ,-3),'YYYY-MM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddMonths([Year - Month] ,-1),'YYYY-MM'))"}&amp;gt;}&lt;/SPAN&gt; Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 11:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242261#M863277</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-28T11:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to make sum of sales of last n periods (Year or Month).</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242262#M863281</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; font-size: 13px;"&gt;Habib&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for wonderful wizard!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 12:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242262#M863281</guid>
      <dc:creator />
      <dc:date>2016-12-28T12:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to make sum of sales of last n periods (Year or Month).</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242263#M863283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this expression earlier but it works only on &lt;STRONG style="color: #ff0000;"&gt;[Year-Month] &lt;/STRONG&gt;filter. As I make any selection on Month field, it makes &lt;STRONG&gt;Amount&lt;/STRONG&gt; to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I also know why this is not working, because my field &lt;STRONG&gt;Month&lt;/STRONG&gt; is in string and my set analysis make sum of &lt;STRONG&gt;Amount&lt;/STRONG&gt; from (Current month - 3) to (Current month - 1) &lt;STRONG&gt;less than and greater than&lt;/STRONG&gt; signs which are not applicable for strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I need is to make expression working when I make any selection on &lt;STRONG&gt;Month&lt;/STRONG&gt; field, which I am not able to do &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Truly appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 12:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242263#M863283</guid>
      <dc:creator />
      <dc:date>2016-12-28T12:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to make sum of sales of last n periods (Year or Month).</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242264#M863285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore selections in Month and Year fields and let Year Month drive your selections (indirectly)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;[Year - Month] = {"$(='&amp;gt;=' &amp;amp; Date(AddMonths([Year - Month] ,-3),'YYYY-MM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddMonths([Year - Month] ,-1),'YYYY-MM'))"}&lt;SPAN style="color: #ff0000;"&gt;, Month, Year&lt;/SPAN&gt;&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 12:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242264#M863285</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-28T12:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to make sum of sales of last n periods (Year or Month).</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242265#M863287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works!!&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 12:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242265#M863287</guid>
      <dc:creator />
      <dc:date>2016-12-28T12:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to make sum of sales of last n periods (Year or Month).</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242266#M863289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 12:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-to-make-sum-of-sales-of-last-n-periods-Year-or/m-p/1242266#M863289</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-28T12:58:12Z</dc:date>
    </item>
  </channel>
</rss>

