<?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 qlikview calculation problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128739#M19439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello freiends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need a help urgently.&amp;nbsp; I have a dataset like below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="source.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/207494_source.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What I need to show in a table is like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.&lt;IMG alt="output.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/207495_output.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want to fetch for each material's cost for the year's max purchase date and compare the cost with its latest purchase date cost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex: for material ABC the latest cost is 200 of purchase date 20/05/2018 and this cost needs to be compared with last year's last purchase date cost. i.e cost will be 150 for purchase date 16/08/2017. Now I need to compare the cost growth f these data which will be 33%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this? Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2018 19:42:02 GMT</pubDate>
    <dc:creator>sayanpwc</dc:creator>
    <dc:date>2018-07-10T19:42:02Z</dc:date>
    <item>
      <title>qlikview calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128739#M19439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello freiends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need a help urgently.&amp;nbsp; I have a dataset like below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="source.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/207494_source.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What I need to show in a table is like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;.&lt;IMG alt="output.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/207495_output.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want to fetch for each material's cost for the year's max purchase date and compare the cost with its latest purchase date cost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex: for material ABC the latest cost is 200 of purchase date 20/05/2018 and this cost needs to be compared with last year's last purchase date cost. i.e cost will be 150 for purchase date 16/08/2017. Now I need to compare the cost growth f these data which will be 33%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this? Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 19:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128739#M19439</guid>
      <dc:creator>sayanpwc</dc:creator>
      <dc:date>2018-07-10T19:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128740#M19440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is last year last purchase not on 20/11/2017? Nov comes after July, so I would expect 100 to be used in the calculation, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 19:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128740#M19440</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-10T19:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128741#M19441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. Sorry. 100 is last purchase cost as it was on 20/11/2017.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 19:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128741#M19441</guid>
      <dc:creator>sayanpwc</dc:creator>
      <dc:date>2018-07-10T19:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128742#M19442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(SecondaryDimensionality() = 0, Num(FirstSortedValue(cost, -purchasedate)/FirstSortedValue({&amp;lt;Year = {"$(=Max(Year)-1)"}&amp;gt;}cost, -purchasedate)-1, '#.##%'),&amp;nbsp; FirstSortedValue(cost, -purchasedate))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 19:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128742#M19442</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-10T19:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128743#M19443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. You are almost there. Just want to know how to get the representation like the output I showed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What dimension and expressions I need to take in pivot table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show the max cost values under year fields as well another column that will tell the growth % among the years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output should be like this, What are my expressions?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="output.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/207496_output.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 20:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128743#M19443</guid>
      <dc:creator>sayanpwc</dc:creator>
      <dc:date>2018-07-10T20:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128744#M19444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at the attached qvw file? Isn't it already in this format? Can you let me know what is not right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 00:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128744#M19444</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-11T00:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128745#M19445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 09:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-calculation-problem/m-p/128745#M19445</guid>
      <dc:creator>sayanpwc</dc:creator>
      <dc:date>2018-07-11T09:43:03Z</dc:date>
    </item>
  </channel>
</rss>

