<?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 Help With This Formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-With-This-Formula/m-p/190934#M53228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I have this formula:&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;Año = {$(=max(Año) - $(=if(max(Mes) = 1, 1, 0)))}, Mes = {$(=if((Mes) = 1, 12, only(Mes)-1) )}, MonthYear = {"&amp;lt;=$(=max MonthYear))"}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;I use it to calculate the sales of the previous month of the selected one. My questions is what i have to put in my formula to calculate the salews of the previous months when are more than one selected????, example&lt;/P&gt;&lt;P&gt;There are selected Mar 10, Feb10, Ene 10 and i need to calculate DIC 09, NOV 09 and OCT 09&lt;/P&gt;&lt;P&gt;Any ideas will be appreciate because i'm getting crazy with this issue&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Mar 2010 04:01:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-24T04:01:43Z</dc:date>
    <item>
      <title>Help With This Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Help-With-This-Formula/m-p/190934#M53228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I have this formula:&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;Año = {$(=max(Año) - $(=if(max(Mes) = 1, 1, 0)))}, Mes = {$(=if((Mes) = 1, 12, only(Mes)-1) )}, MonthYear = {"&amp;lt;=$(=max MonthYear))"}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;I use it to calculate the sales of the previous month of the selected one. My questions is what i have to put in my formula to calculate the salews of the previous months when are more than one selected????, example&lt;/P&gt;&lt;P&gt;There are selected Mar 10, Feb10, Ene 10 and i need to calculate DIC 09, NOV 09 and OCT 09&lt;/P&gt;&lt;P&gt;Any ideas will be appreciate because i'm getting crazy with this issue&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 04:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-With-This-Formula/m-p/190934#M53228</guid>
      <dc:creator />
      <dc:date>2010-03-24T04:01:43Z</dc:date>
    </item>
  </channel>
</rss>

