<?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 Performing Calculation for Current and Past Month Information in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734639#M1084834</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 am have a straight table displaying different months of data as below and am unsure how do I get average of 2 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;MonthYear&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Item&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Total Cost&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;AverageOf2Months&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;01/2014&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Expected Value 100+300/2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;02/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Expected Value 300+(Till Date Total Cost)/2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Expected Value 200+400/2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;02/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Expected Value 400+(Till Date Total Cost)/2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows how can I perform the calculation to get my expected value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the full date e.g 31/01/2014 but I have converted it to months/year to perform necessary calculation to total the cost of item A for the month. I am unsure how would I reference the total cost of item A in Feb 2014 to get my average. Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 10:18:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-24T10:18:17Z</dc:date>
    <item>
      <title>Performing Calculation for Current and Past Month Information</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734639#M1084834</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 am have a straight table displaying different months of data as below and am unsure how do I get average of 2 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;MonthYear&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Item&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Total Cost&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;AverageOf2Months&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;01/2014&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Expected Value 100+300/2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;02/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Expected Value 300+(Till Date Total Cost)/2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Expected Value 200+400/2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;02/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Expected Value 400+(Till Date Total Cost)/2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows how can I perform the calculation to get my expected value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the full date e.g 31/01/2014 but I have converted it to months/year to perform necessary calculation to total the cost of item A for the month. I am unsure how would I reference the total cost of item A in Feb 2014 to get my average. Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734639#M1084834</guid>
      <dc:creator />
      <dc:date>2014-06-24T10:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Performing Calculation for Current and Past Month Information</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734640#M1084835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone able to help? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 01:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734640#M1084835</guid>
      <dc:creator />
      <dc:date>2014-06-30T01:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performing Calculation for Current and Past Month Information</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734641#M1084836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you do a &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangeavg(Total Cost, Below(Total Cost))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 01:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734641#M1084836</guid>
      <dc:creator />
      <dc:date>2014-06-30T01:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Performing Calculation for Current and Past Month Information</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734642#M1084837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 01:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734642#M1084837</guid>
      <dc:creator />
      <dc:date>2014-06-30T01:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Performing Calculation for Current and Past Month Information</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734643#M1084840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramkumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution works but is there anyway I could get the formula to calculate by item?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Base on the sample qvw, I have to sort the table by item before it works and is there anyway I can get the last value to not perform average if it is the last value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 02:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734643#M1084840</guid>
      <dc:creator />
      <dc:date>2014-06-30T02:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Performing Calculation for Current and Past Month Information</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734644#M1084843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already the last item was not calculating average it it was the last item. May be i don't get you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 02:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-Calculation-for-Current-and-Past-Month-Information/m-p/734644#M1084843</guid>
      <dc:creator />
      <dc:date>2014-06-30T02:14:52Z</dc:date>
    </item>
  </channel>
</rss>

