<?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 Expression Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Problem/m-p/1427947#M429868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi at all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this situation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" height="199" src="https://community.qlik.com/legacyfs/online/183942_pastedImage_0.png" style="width: 518px; height: 198.567px;" width="518" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the first table i calc the total quantity of purchased materials, first available unit price&amp;nbsp; and then the total amount oof purchased for each product. Then i woul like to obtain a second table with only the total amount by "Bill".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in the example i would like obtain 2515 as total amount of "Conto_01" and not 2775.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total Quantity =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Quantity)&lt;/P&gt;&lt;P&gt;First Price =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg({&amp;lt;First_Price = {1}&amp;gt;}Price)&lt;/P&gt;&lt;P&gt;Total Amount =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Quantity) * Avg({&amp;lt;First_Price = {1}&amp;gt;}Price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to obtain the target result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2017 15:48:11 GMT</pubDate>
    <dc:creator>andrea90casa</dc:creator>
    <dc:date>2017-11-20T15:48:11Z</dc:date>
    <item>
      <title>Expression Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Problem/m-p/1427947#M429868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi at all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this situation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" height="199" src="https://community.qlik.com/legacyfs/online/183942_pastedImage_0.png" style="width: 518px; height: 198.567px;" width="518" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the first table i calc the total quantity of purchased materials, first available unit price&amp;nbsp; and then the total amount oof purchased for each product. Then i woul like to obtain a second table with only the total amount by "Bill".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in the example i would like obtain 2515 as total amount of "Conto_01" and not 2775.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total Quantity =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Quantity)&lt;/P&gt;&lt;P&gt;First Price =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg({&amp;lt;First_Price = {1}&amp;gt;}Price)&lt;/P&gt;&lt;P&gt;Total Amount =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Quantity) * Avg({&amp;lt;First_Price = {1}&amp;gt;}Price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to obtain the target result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 15:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Problem/m-p/1427947#M429868</guid>
      <dc:creator>andrea90casa</dc:creator>
      <dc:date>2017-11-20T15:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Problem/m-p/1427948#M429869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(S&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;um(Quantity) * Avg({&amp;lt;First_Price = {1}&amp;gt;}Price), Bill, Product))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 15:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Problem/m-p/1427948#M429869</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-20T15:53:11Z</dc:date>
    </item>
  </channel>
</rss>

