<?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 Set analysis for calculating the ytd amount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-calculating-the-ytd-amount/m-p/220082#M73030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am using the following set analysis for calculating the ytd amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = {&lt;B&gt;&lt;I&gt;$(=max(Year))&lt;/I&gt;&lt;/B&gt;}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"}&amp;gt;} SalesAmount)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The problem here is it's working fine for all the dimensions except the month. I have created a drill down using the month and other dimensions. When I drilldown to the month level it's displaying the monthly values but not the cumulative value for each month.&lt;/P&gt;&lt;P&gt;To be very simple if I take chart with Month as Dimension and the above code as expression . Its not calculating the cummulative value for months. How can I overcome this problem ? . Is there any way to modify the expression ?&lt;/P&gt;&lt;P&gt;Request for your valuable inputs..&lt;/P&gt;&lt;P&gt;Thanks in Advance....&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alvin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 14:32:37 GMT</pubDate>
    <dc:creator>alvinford</dc:creator>
    <dc:date>2011-02-17T14:32:37Z</dc:date>
    <item>
      <title>Set analysis for calculating the ytd amount</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-calculating-the-ytd-amount/m-p/220082#M73030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am using the following set analysis for calculating the ytd amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = {&lt;B&gt;&lt;I&gt;$(=max(Year))&lt;/I&gt;&lt;/B&gt;}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"}&amp;gt;} SalesAmount)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The problem here is it's working fine for all the dimensions except the month. I have created a drill down using the month and other dimensions. When I drilldown to the month level it's displaying the monthly values but not the cumulative value for each month.&lt;/P&gt;&lt;P&gt;To be very simple if I take chart with Month as Dimension and the above code as expression . Its not calculating the cummulative value for months. How can I overcome this problem ? . Is there any way to modify the expression ?&lt;/P&gt;&lt;P&gt;Request for your valuable inputs..&lt;/P&gt;&lt;P&gt;Thanks in Advance....&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alvin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 14:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-calculating-the-ytd-amount/m-p/220082#M73030</guid>
      <dc:creator>alvinford</dc:creator>
      <dc:date>2011-02-17T14:32:37Z</dc:date>
    </item>
    <item>
      <title>Set analysis for calculating the ytd amount</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-calculating-the-ytd-amount/m-p/220083#M73031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try that:&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;({$&amp;lt;Year = {&lt;B&gt;&lt;I&gt;$(=max(Year))&lt;/I&gt;&lt;/B&gt;}, Month = {"&amp;lt;=$(=max(Month))"}&amp;gt;} LineSalesAmount &lt;P&gt;)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 14:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-calculating-the-ytd-amount/m-p/220083#M73031</guid>
      <dc:creator />
      <dc:date>2011-02-17T14:41:34Z</dc:date>
    </item>
    <item>
      <title>Set analysis for calculating the ytd amount</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-calculating-the-ytd-amount/m-p/220084#M73032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;emaC,&lt;/P&gt;&lt;P&gt;Thanks for your reply..&lt;/P&gt;&lt;P&gt;This does not meet my requiremnet .. its displaying same as the one I have used .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alvin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 16:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-calculating-the-ytd-amount/m-p/220084#M73032</guid>
      <dc:creator>alvinford</dc:creator>
      <dc:date>2011-02-17T16:06:02Z</dc:date>
    </item>
    <item>
      <title>Set analysis for calculating the ytd amount</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-calculating-the-ytd-amount/m-p/220085#M73033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alvin,&lt;/P&gt;&lt;P&gt;You could create two variables "startyear" and "endperiod" in a format like this 'YYYYMMDD' and you field "date" you have to write in the same format. Then you can use the following expression. Your new variables could be calculated with a function or just put them like inputfields in the report.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;date={"&amp;gt;=$(startyear)"}*{"&amp;lt;=$(endperiod)"}&lt;STRONG&gt;SalesAmount&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 16:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-calculating-the-ytd-amount/m-p/220085#M73033</guid>
      <dc:creator />
      <dc:date>2011-02-17T16:16:55Z</dc:date>
    </item>
    <item>
      <title>Set analysis for calculating the ytd amount</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-for-calculating-the-ytd-amount/m-p/220086#M73034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rengas,&lt;/P&gt;&lt;P&gt;Thanks for your reply ..My user doesn't want to select the period. He just wants to click the month .. The data should be displayed from April to the selected month.. . I can achieve but when I take the Month as dimension I could not achieve the cumulative value of the months . The Set analysis is giving the individual value of the month..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alvin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 16:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-for-calculating-the-ytd-amount/m-p/220086#M73034</guid>
      <dc:creator>alvinford</dc:creator>
      <dc:date>2011-02-17T16:27:48Z</dc:date>
    </item>
  </channel>
</rss>

