<?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: Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/719055#M674607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply but the expression you gave me is giving different annuals from excel and what if readings are '0'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 18:24:14 GMT</pubDate>
    <dc:creator>dseelam</dc:creator>
    <dc:date>2014-08-05T18:24:14Z</dc:date>
    <item>
      <title>Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/719053#M674605</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 a annual calculation, the following was done in excel is it possible in straight or pivot table in qlik ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so&amp;nbsp; in the annual column below each row is achieved by using this formula&amp;nbsp; FOR C5 ROW = ((B5-B4)/(A5-A4))*365&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 258px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD colspan="1"&gt;B&lt;/TD&gt;&lt;TD colspan="1"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" width="79"&gt;1&lt;/TD&gt;&lt;TD class="xl67" height="17" width="79"&gt;Date&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="99"&gt;Reading&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="80"&gt;Annual &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;05/04/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1,403,817&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;06/13/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;388,888&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;07/11/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1,458,250&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;08/21/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1,487,134&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;257,809&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;09/23/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1,505,500&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;200,370&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;10/15/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1,525,153&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;332,586&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;11/16/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1,553,282&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;320,117&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;12/19/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1,577,608&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;269,649&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;01/17/13&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1,597,829&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;254,955&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 16:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/719053#M674605</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2014-08-05T16:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/719054#M674606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=((Reading - above(reading))/(Date - above(Date))*365&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 16:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/719054#M674606</guid>
      <dc:creator />
      <dc:date>2014-08-05T16:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/719055#M674607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply but the expression you gave me is giving different annuals from excel and what if readings are '0'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 18:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/719055#M674607</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2014-08-05T18:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/719056#M674608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a sample qvw you could share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 18:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/719056#M674608</guid>
      <dc:creator />
      <dc:date>2014-08-05T18:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/719057#M674609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hear is the sample QVW, I am not even able to populate any data in straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I am sending you sample excel sheet I am looking for with calculations &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 18:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/719057#M674609</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2014-08-05T18:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/719058#M674610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the annual metric you're using supposed to end up being the change in readings over the change in the number of days?&amp;nbsp; What are the units you're working with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 18:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/719058#M674610</guid>
      <dc:creator />
      <dc:date>2014-08-05T18:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/719059#M674615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate annual trends depending on the difference between readings and difference between dates formula or definition given by user &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 20:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/719059#M674615</guid>
      <dc:creator>dseelam</dc:creator>
      <dc:date>2014-08-05T20:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation/m-p/719060#M674616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14072842845906550" jivemacro_uid="_14072842845906550"&gt;
&lt;P&gt;tabInput:&lt;/P&gt;
&lt;P&gt;LOAD Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reading,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Reading-Previous(Reading))/(Date-Previous(Date))*365 as Annual&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="118876" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2061-128402-582931-118876/ID 277046.xlsx"&gt;http://community.qlik.com/servlet/JiveServlet/download/582931-118876/ID%20277046.xlsx&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_128402_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/63788_QlikCommunity_Thread_128402_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason for the slightly different results between your excel calculation and previously suggested QV solutions might be that your original post just included dates while your excel source contains timestamps with different times than 00:00:00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 00:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation/m-p/719060#M674616</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-08-06T00:11:06Z</dc:date>
    </item>
  </channel>
</rss>

