<?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 Multiplication / Product in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiplication-Product/m-p/241566#M91972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Slightly more efficient and seems to work with zeroes even though not explicitly checked:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(even(count({&amp;lt;Number={"&amp;lt;0"}&amp;gt;} Number)),1,-1)*exp(sum(log(fabs(Number))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 01:24:57 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-10-21T01:24:57Z</dc:date>
    <item>
      <title>Multiplication / Product</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-Product/m-p/241564#M91970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to multiply a field, in the same manner as you can sum a field: SUM( [Field] )&lt;/P&gt;&lt;P&gt;I could not find a function such as this "PRODUCT"( [Field] ). If Field = {1,1,5,7}, then I would expect such a function to return: 1*1*5*7=35, just as the SUM function returns: 1+1+5+7=14.&lt;/P&gt;&lt;P&gt;Is there such a function...?&lt;/P&gt;&lt;P&gt;/regards Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 09:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-Product/m-p/241564#M91970</guid>
      <dc:creator />
      <dc:date>2010-10-20T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Multiplication / Product</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-Product/m-p/241565#M91971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the numbers are all positive (from Alexander Schubert):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;exp(sum(log(x)))&lt;/P&gt;&lt;P&gt;If you might have zeros or negatives (from Haider.Al-Seady):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(count(if(x=0,1))&amp;gt;0, 0, // try if there are zeros&lt;BR /&gt;if(even(count(if(x&amp;lt;0,1))),1,-1)* // find "cumulative" sign&lt;BR /&gt;exp(sum(log(fabs(x)))) // Abs product&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Which translates to this more efficient set analysis version, I believe:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(count({&amp;lt;x={0}&amp;gt;} x),0&lt;BR /&gt;,if(even(count({&amp;lt;x={"&amp;lt;0"}&amp;gt;} x)),1,-1)&lt;BR /&gt;*exp(sum(log(fabs(x)))))&lt;/P&gt;&lt;P&gt;And there's an open proposal to have a separate function for this on the customer portal if you have access and would like to have such a function:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;A href="https://emea.salesforce.com/ideas/viewIdea.apexp?id=08720000000HKtd&amp;amp;srPos=0&amp;amp;srKp=087"&gt;https://emea.salesforce.com/ideas/viewIdea.apexp?id=08720000000HKtd&amp;amp;srPos=0&amp;amp;srKp=087&lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;A href="https://emea.salesforce.com/ideas/viewIdea.apexp?id=08720000000HKtd&amp;amp;srPos=0&amp;amp;srKp=087"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 00:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-Product/m-p/241565#M91971</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-21T00:14:56Z</dc:date>
    </item>
    <item>
      <title>Multiplication / Product</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-Product/m-p/241566#M91972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Slightly more efficient and seems to work with zeroes even though not explicitly checked:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(even(count({&amp;lt;Number={"&amp;lt;0"}&amp;gt;} Number)),1,-1)*exp(sum(log(fabs(Number))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 01:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-Product/m-p/241566#M91972</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-21T01:24:57Z</dc:date>
    </item>
    <item>
      <title>Multiplication / Product</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-Product/m-p/241567#M91973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;already tried the variant "exp(sum(log(x)))", and it works well! Negative numbers are fortunately not applicable, so did not have to use that solution.&lt;/P&gt;&lt;P&gt;Don't think I have acces to the salesforce portal, but I definately think there should be a function "PRODUCT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/regards Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 10:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-Product/m-p/241567#M91973</guid>
      <dc:creator />
      <dc:date>2010-10-26T10:15:37Z</dc:date>
    </item>
  </channel>
</rss>

