<?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: Price Variance calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249368#M498328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Iiron! This would work if the date is not selected, but if year 2011 for example is selected, then the variance should start again from the first price in year 2011, not from the very first price.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About ArtCode not being connected properly. I cannot see two values on the same day for same ArtCode. And even if there were, then it can be correct when two goods receipts were done at the same time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2011 13:00:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-04T13:00:32Z</dc:date>
    <item>
      <title>Price Variance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249363#M498323</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;I have a following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen shot 2011-08-04 at 12.52.34 PM.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6281_Screen+shot+2011-08-04+at+12.52.34+PM.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;ArtCode and IVTRansDate are dimensions and following columns expressions.&lt;/P&gt;&lt;P&gt;GRQty and GRUPrice are data fields and for PriceVariance I used follwing calculation:&lt;/P&gt;&lt;P&gt;=GRUPrice-vFirstUPrice&lt;/P&gt;&lt;P&gt;Variable&amp;nbsp; vFirstUPrice=FirstSortedValue(GRUPrice,GRDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything is nice and working when I have one Item (ArtCode) selected. As soon as I have more than one item variable vFirstUPrice is not giving me any value and therefore my PriceVariance is empty.&lt;/P&gt;&lt;P&gt;I need to get table, where the first GRUPrice is taken and then for next rows variance is calculated according to the first price. I tried using Aggr function also, but did not succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas, how it could be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mariliis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 10:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249363#M498323</guid>
      <dc:creator />
      <dc:date>2011-08-04T10:05:25Z</dc:date>
    </item>
    <item>
      <title>Price Variance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249364#M498324</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you attach your qvw here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 10:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249364#M498324</guid>
      <dc:creator />
      <dc:date>2011-08-04T10:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Price Variance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249365#M498325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, sure. File is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 10:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249365#M498325</guid>
      <dc:creator />
      <dc:date>2011-08-04T10:49:57Z</dc:date>
    </item>
    <item>
      <title>Price Variance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249366#M498326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; ArtCode is not Connected properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if take data seperatly then u will find two different value inside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so check the proper columns to link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will resolve ur issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 12:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249366#M498326</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-08-04T12:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Price Variance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249367#M498327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei&lt;/P&gt;&lt;P&gt;attach is an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i calculate the first price&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the load script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take a look&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 12:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249367#M498327</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-04T12:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Price Variance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249368#M498328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Iiron! This would work if the date is not selected, but if year 2011 for example is selected, then the variance should start again from the first price in year 2011, not from the very first price.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About ArtCode not being connected properly. I cannot see two values on the same day for same ArtCode. And even if there were, then it can be correct when two goods receipts were done at the same time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 13:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249368#M498328</guid>
      <dc:creator />
      <dc:date>2011-08-04T13:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Price Variance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249369#M498329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont have time to think how not to display the rows with null&lt;/P&gt;&lt;P&gt;but other wise it seems ok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 14:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249369#M498329</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-04T14:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Price Variance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249370#M498332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much! It is working just as I need &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 08:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249370#M498332</guid>
      <dc:creator />
      <dc:date>2011-08-05T08:05:52Z</dc:date>
    </item>
    <item>
      <title>Price Variance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249371#M498333</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;The solution of&amp;nbsp; Liron baram is good but if u want to do this in some other way give &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GRUPrice-FirstSortedValue(total&amp;lt;ArtCode&amp;gt;GRUPrice,GRDate) in the Price Variance calculation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will also give u the same result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 12:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249371#M498333</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2011-08-05T12:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Price Variance calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249372#M498335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! It's actually easier solution and will try to remember this Total for the future as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 08:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Price-Variance-calculation/m-p/249372#M498335</guid>
      <dc:creator />
      <dc:date>2011-08-08T08:35:57Z</dc:date>
    </item>
  </channel>
</rss>

