<?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 unit price aggregation calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/unit-price-aggregation-calculation/m-p/609367#M224940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m stuck on an aggregation calculation.&lt;/P&gt;&lt;P&gt;I’ve to calculate a price variation value by day &lt;STRONG&gt;and display it by month&lt;/STRONG&gt; (in sheets, graphics…).&lt;/P&gt;&lt;P&gt;In the following table, &lt;STRONG&gt;the last column is correct&lt;/STRONG&gt; and display t&lt;STRONG&gt;he good result&lt;/STRONG&gt; in the circle.&lt;/P&gt;&lt;P&gt;It works as I’ve used the following formula in the accumulated selection column:&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;above&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;total&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: maroon;"&gt;variation&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;), 0, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;Total&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="07-05-2014 07-57-02.jpg" class="jive-image" src="/legacyfs/online/58491_07-05-2014 07-57-02.jpg" /&gt;&lt;/P&gt;&lt;P&gt;How could I get the same result if I remove the DATE dimension or if I want it in a text box ?&lt;/P&gt;&lt;P&gt;Incorrect value in the yellow outlined column after DATE dimension removing (as the calculation should be based on dates):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="07-05-2014 08-07-06.jpg" class="jive-image" src="/legacyfs/online/58492_07-05-2014 08-07-06.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I’ve tried some calculations in text boxes but I can’t get the correct result. ie:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;"&amp;lt;=$(=max(DATE))"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;variation&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;))*&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;qty&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone has a good idea… it would be nice&lt;/P&gt;&lt;P&gt;Find the qvw attached&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2014 16:52:22 GMT</pubDate>
    <dc:creator>pascal_theurot</dc:creator>
    <dc:date>2014-05-07T16:52:22Z</dc:date>
    <item>
      <title>unit price aggregation calculation</title>
      <link>https://community.qlik.com/t5/QlikView/unit-price-aggregation-calculation/m-p/609367#M224940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m stuck on an aggregation calculation.&lt;/P&gt;&lt;P&gt;I’ve to calculate a price variation value by day &lt;STRONG&gt;and display it by month&lt;/STRONG&gt; (in sheets, graphics…).&lt;/P&gt;&lt;P&gt;In the following table, &lt;STRONG&gt;the last column is correct&lt;/STRONG&gt; and display t&lt;STRONG&gt;he good result&lt;/STRONG&gt; in the circle.&lt;/P&gt;&lt;P&gt;It works as I’ve used the following formula in the accumulated selection column:&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;above&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;total&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: maroon;"&gt;variation&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;), 0, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: blue;"&gt;Total&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: black;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="07-05-2014 07-57-02.jpg" class="jive-image" src="/legacyfs/online/58491_07-05-2014 07-57-02.jpg" /&gt;&lt;/P&gt;&lt;P&gt;How could I get the same result if I remove the DATE dimension or if I want it in a text box ?&lt;/P&gt;&lt;P&gt;Incorrect value in the yellow outlined column after DATE dimension removing (as the calculation should be based on dates):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="07-05-2014 08-07-06.jpg" class="jive-image" src="/legacyfs/online/58492_07-05-2014 08-07-06.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I’ve tried some calculations in text boxes but I can’t get the correct result. ie:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;"&amp;lt;=$(=max(DATE))"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;variation&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;))*&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;qty&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone has a good idea… it would be nice&lt;/P&gt;&lt;P&gt;Find the qvw attached&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 16:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/unit-price-aggregation-calculation/m-p/609367#M224940</guid>
      <dc:creator>pascal_theurot</dc:creator>
      <dc:date>2014-05-07T16:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: unit price aggregation calculation</title>
      <link>https://community.qlik.com/t5/QlikView/unit-price-aggregation-calculation/m-p/609368#M224941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in your text box expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr( sum(qty)*rangesum(above(variation,0,rowno())) ,DATE))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 17:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/unit-price-aggregation-calculation/m-p/609368#M224941</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-07T17:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: unit price aggregation calculation</title>
      <link>https://community.qlik.com/t5/QlikView/unit-price-aggregation-calculation/m-p/609369#M224942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't know you could that kind of expression in a text box (or elsewhere)&lt;/P&gt;&lt;P&gt;It works perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 17:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/unit-price-aggregation-calculation/m-p/609369#M224942</guid>
      <dc:creator>pascal_theurot</dc:creator>
      <dc:date>2014-05-07T17:30:47Z</dc:date>
    </item>
  </channel>
</rss>

