<?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: Expression help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/440135#M164058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is correct, I need to sum rows in a pivot table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your expression, what needs to go into the 'YourChartDimensionsListedHere'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2012 08:35:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-23T08:35:54Z</dc:date>
    <item>
      <title>Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/440133#M164056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having some trouble with this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if(min([Created on])=min([Picking date]), count(DISTINCT(DOC_NUMBER)), NetWorkDays(min(date([Created on])), min(date([Picking date])))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not work correctly, however when I take out the 'sum' function, the expression is correct on line level but the total is wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im confused... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 15:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/440133#M164056</guid>
      <dc:creator />
      <dc:date>2012-10-22T15:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/440134#M164057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't embed an aggregation function like min() into another aggregation function like sum() without using advanced aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want something like sum of rows (in a pivot table? in a straight table, there is also a total mode to do so)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=sum(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if(min([Created on])=min([Picking date]), count(DISTINCT(DOC_NUMBER)), NetWorkDays(min(date([Created on])), min(date([Picking date]))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;,YourChartDimensionsListedHere)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;See also sum-of-rows in pivot tables in the Help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 18:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/440134#M164057</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-22T18:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/440135#M164058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is correct, I need to sum rows in a pivot table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your expression, what needs to go into the 'YourChartDimensionsListedHere'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 08:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/440135#M164058</guid>
      <dc:creator />
      <dc:date>2012-10-23T08:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/440136#M164059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your charts dimensions, comma separated (note: aggr() will not take any calculated dimensions, so you can use only field names).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you are using Client and Store field names as dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=sum(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if(min([Created on])=min([Picking date]), count(DISTINCT(DOC_NUMBER)), NetWorkDays(min(date([Created on])), min(date([Picking date]))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;,Client, Store)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check also the Help for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 15:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/440136#M164059</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-23T15:50:34Z</dc:date>
    </item>
  </channel>
</rss>

