<?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: Total amount with Set Analysis for last year data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-amount-with-Set-Analysis-for-last-year-data/m-p/939420#M324115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can see in the attached sample;&lt;/P&gt;&lt;P&gt;in Summary chart table: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total LY Amount should be 250 instead of 1090 coming up. Current logic is including all amounts from last year irrespective of Group2 in current year.&lt;/P&gt;&lt;P&gt;Meaning that, for current year, we have only 2 values for Group2: (250 &amp;amp; 450), and for LYearAmount we get total 250 which is correct, but if we need total for last year as a separate column, I get wrong amount.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Oct 2015 17:19:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-21T17:19:07Z</dc:date>
    <item>
      <title>Total amount with Set Analysis for last year data</title>
      <link>https://community.qlik.com/t5/QlikView/Total-amount-with-Set-Analysis-for-last-year-data/m-p/939418#M324113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using following set analysis to get last year distinct count of products. &lt;/P&gt;&lt;P&gt;Here, MTYear is a variable that calculates last year "Month_Year" correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(DISTINCT{$&amp;lt;MTYearDt={$(MTYear)}&amp;gt;} Product_Nbr)&lt;/P&gt;&lt;P&gt;Above formula works perfectly in my table chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, now i need % of total for each line in new column and my below formula doesn't give me right result. &lt;/P&gt;&lt;P&gt;=count(DISTINCT TOTAL{$&amp;lt;MTYearDt={$(MTYear)}&amp;gt;}&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Product_Nbr&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help and time on this.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;Sambha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 14:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-amount-with-Set-Analysis-for-last-year-data/m-p/939418#M324113</guid>
      <dc:creator />
      <dc:date>2015-10-21T14:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Total amount with Set Analysis for last year data</title>
      <link>https://community.qlik.com/t5/QlikView/Total-amount-with-Set-Analysis-for-last-year-data/m-p/939419#M324114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample with expected output? Your syntax doesn't look wrong to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 15:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-amount-with-Set-Analysis-for-last-year-data/m-p/939419#M324114</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-21T15:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Total amount with Set Analysis for last year data</title>
      <link>https://community.qlik.com/t5/QlikView/Total-amount-with-Set-Analysis-for-last-year-data/m-p/939420#M324115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can see in the attached sample;&lt;/P&gt;&lt;P&gt;in Summary chart table: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Total LY Amount should be 250 instead of 1090 coming up. Current logic is including all amounts from last year irrespective of Group2 in current year.&lt;/P&gt;&lt;P&gt;Meaning that, for current year, we have only 2 values for Group2: (250 &amp;amp; 450), and for LYearAmount we get total 250 which is correct, but if we need total for last year as a separate column, I get wrong amount.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 17:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-amount-with-Set-Analysis-for-last-year-data/m-p/939420#M324115</guid>
      <dc:creator />
      <dc:date>2015-10-21T17:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Total amount with Set Analysis for last year data</title>
      <link>https://community.qlik.com/t5/QlikView/Total-amount-with-Set-Analysis-for-last-year-data/m-p/939421#M324116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If([Grouping BY] = 'Group1', sum(TOTAL &amp;lt;Group2&amp;gt;{$&amp;lt;Year={$(LYear)}&amp;gt;} Amount), sum(TOTAL &amp;lt;Group1&amp;gt;{$&amp;lt;Year={$(LYear)}&amp;gt;} Amount))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 17:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-amount-with-Set-Analysis-for-last-year-data/m-p/939421#M324116</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-21T17:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Total amount with Set Analysis for last year data</title>
      <link>https://community.qlik.com/t5/QlikView/Total-amount-with-Set-Analysis-for-last-year-data/m-p/939422#M324117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Superb.. Thank you very much for this script; Can you please also tell me how does it work? I didn't get following part in this set analysis...&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TOTAL &amp;lt;Group2&amp;gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;amp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TOTAL &amp;lt;Group1&amp;gt;{&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;-Sambha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 18:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-amount-with-Set-Analysis-for-last-year-data/m-p/939422#M324117</guid>
      <dc:creator />
      <dc:date>2015-10-21T18:27:39Z</dc:date>
    </item>
  </channel>
</rss>

