<?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: aggr() problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247025#M499636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My report is a Pivot - if I put the Target Ratio as an expressin it&amp;nbsp; just repeats the figure as a sub-column which is not what I want.&amp;nbsp; I think it must be something in the raw data that is causing it.... I'm going to try that.&amp;nbsp; I take your point about how to work out the % though.... agreed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 21:12:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-20T21:12:40Z</dc:date>
    <item>
      <title>aggr() problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247019#M499630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I have a calculated dimension in a pivot table which is summarising percentages across multiple records as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(aggr(nodistinct avg(People.TargetRatio/100),EndDate),'##%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However - it seems to generate 2 records for some of the data I thought that the nodistinct would get rid of this - cany anybody explain why this might be so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 21:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247019#M499630</guid>
      <dc:creator />
      <dc:date>2011-06-30T21:03:40Z</dc:date>
    </item>
    <item>
      <title>aggr() problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247020#M499631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about DISTINCT instead of NODISTINCT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 00:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247020#M499631</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-01T00:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: aggr() problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247021#M499632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use distinct I get no value at all !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T: 01732 741414&lt;/P&gt;&lt;P&gt;M: 07711 183919&lt;/P&gt;&lt;P&gt;E: amanda@azaralogic.com&amp;lt;mailto:amanda@azaralogic.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2011 16:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247021#M499632</guid>
      <dc:creator />
      <dc:date>2011-07-03T16:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: aggr() problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247022#M499633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there - I presume when you say two records for some data that you mean for the same date?&amp;nbsp; If so are you sure that there are no time values included on the date field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check this by creating a new list box with &lt;STRONG&gt;EndDate&lt;/STRONG&gt; in it.&amp;nbsp; If there are times included on the dates then two rows will be displayed for that date - even though the time is not displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case you need to wrap &lt;STRONG&gt;EndDate&lt;/STRONG&gt; with a &lt;STRONG&gt;DayStart&lt;/STRONG&gt; function on load, eg.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(DayStart(EndDate), 'DD/MM/YYYY') as EndDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this isn't the problem then please post back, and we can try another tack.&amp;nbsp; Incidentally I don't believe you should need any kind of DISTINCT statement in your Aggr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.quickintelligence.co.uk/"&gt;http://www.quickintelligence.co.uk/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2011 21:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247022#M499633</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-07-03T21:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: aggr() problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247023#M499634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay in posting back and thanks for your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see image for what I get - I would expect only a single value in the Target Ratio, and all the other columns.&lt;IMG alt="shot.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6020_shot.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;It should be combining two ratios 45% and 78% should be 61.5%....&amp;nbsp; what might cause multiple entries in this column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 20:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247023#M499634</guid>
      <dc:creator />
      <dc:date>2011-07-20T20:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: aggr() problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247024#M499635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to put the Target Ratio as expressions, rather than dimensions in order to combine them.&amp;nbsp; Be very careful how you combine the percentages though - as just adding them together and dividing by two will give a duff value.&amp;nbsp; Can you go back to how the targets are derived and work them out in the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 20:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247024#M499635</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-07-20T20:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: aggr() problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247025#M499636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My report is a Pivot - if I put the Target Ratio as an expressin it&amp;nbsp; just repeats the figure as a sub-column which is not what I want.&amp;nbsp; I think it must be something in the raw data that is causing it.... I'm going to try that.&amp;nbsp; I take your point about how to work out the % though.... agreed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 21:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-problem/m-p/247025#M499636</guid>
      <dc:creator />
      <dc:date>2011-07-20T21:12:40Z</dc:date>
    </item>
  </channel>
</rss>

