<?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 Multiplying in specific order in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Multiplying-in-specific-order/m-p/1521157#M37323</link>
    <description>&lt;P&gt;Hello Qlik Users,&lt;/P&gt;&lt;P&gt;I have an 'Order Details' table presented below. I would like to calculate the gross sales, which is the [UnitPrice]*[Quantity]. However, one 'OrderID' consists of multiple order lines called 'LineNo'. What expression can I use to make sure that it multiplies in a specific order?&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;For OrderID (10248)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gross Sales =&amp;nbsp; &amp;nbsp;(14,04*10) + (12,71*5) + (28,62*12) =&amp;nbsp;&lt;SPAN&gt;547.39&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="OrderDetails Table.JPG" style="width: 588px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2228iB040FB2FEADBC038/image-size/large?v=v2&amp;amp;px=999" role="button" title="OrderDetails Table.JPG" alt="OrderDetails Table.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The expression 'Sum(total Quantity)*Sum(total UnitPrice)' does not work as it first sums up the Quantity and UnitPrice and afterwards it multiplies. I need an expression that multiplies first and adds up next.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:44:04 GMT</pubDate>
    <dc:creator>stasvdbraber</dc:creator>
    <dc:date>2024-11-16T21:44:04Z</dc:date>
    <item>
      <title>Multiplying in specific order</title>
      <link>https://community.qlik.com/t5/App-Development/Multiplying-in-specific-order/m-p/1521157#M37323</link>
      <description>&lt;P&gt;Hello Qlik Users,&lt;/P&gt;&lt;P&gt;I have an 'Order Details' table presented below. I would like to calculate the gross sales, which is the [UnitPrice]*[Quantity]. However, one 'OrderID' consists of multiple order lines called 'LineNo'. What expression can I use to make sure that it multiplies in a specific order?&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;For OrderID (10248)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gross Sales =&amp;nbsp; &amp;nbsp;(14,04*10) + (12,71*5) + (28,62*12) =&amp;nbsp;&lt;SPAN&gt;547.39&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="OrderDetails Table.JPG" style="width: 588px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2228iB040FB2FEADBC038/image-size/large?v=v2&amp;amp;px=999" role="button" title="OrderDetails Table.JPG" alt="OrderDetails Table.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The expression 'Sum(total Quantity)*Sum(total UnitPrice)' does not work as it first sums up the Quantity and UnitPrice and afterwards it multiplies. I need an expression that multiplies first and adds up next.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiplying-in-specific-order/m-p/1521157#M37323</guid>
      <dc:creator>stasvdbraber</dc:creator>
      <dc:date>2024-11-16T21:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying in specific order</title>
      <link>https://community.qlik.com/t5/App-Development/Multiplying-in-specific-order/m-p/1521166#M37324</link>
      <description>&lt;P&gt;Use the expression sum(Quantity*UnitPrice) as measure.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 17:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiplying-in-specific-order/m-p/1521166#M37324</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-12-14T17:03:13Z</dc:date>
    </item>
  </channel>
</rss>

