<?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 and {1} - no selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452170#M168747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Absolutely agree.&amp;nbsp; Just tying to keep it working even with aggr() - which is most likley redundant here.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 17:23:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-18T17:23:47Z</dc:date>
    <item>
      <title>Aggr and {1} - no selection</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452165#M168742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'm trying to make an expression run ignoring all selections. I have created this expression (see below) to deduce time spent traveling but it is being affected by selections. &lt;/P&gt;&lt;P&gt;Can someone tell me where I'm going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SUM&lt;SPAN style="font-size: 8pt;"&gt;({1} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1} MRDuration,TravelLeg)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 16:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452165#M168742</guid>
      <dc:creator>felix18807</dc:creator>
      <dc:date>2013-03-18T16:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and {1} - no selection</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452166#M168743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not clear what aggr is doing here.&amp;nbsp; Try this&lt;/P&gt;&lt;P&gt;SUM&lt;SPAN style="font-size: 8pt;"&gt;({1} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;MRDuration)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 16:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452166#M168743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-18T16:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and {1} - no selection</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452167#M168744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should probably not use Aggr() at all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try Sum({1} MRDuration).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/03/11/when-should-the-aggr-function-not-be-used"&gt;When should the Aggr() function NOT be used?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 16:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452167#M168744</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-03-18T16:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and {1} - no selection</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452168#M168745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This probably makes some sense, depending on what is to calcualte:&lt;/P&gt;&lt;P&gt;sum({1} aggr(SUM&lt;SPAN style="font-size: 8pt;"&gt;({1} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;MRDuration), TravelLeg))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 17:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452168#M168745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-18T17:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and {1} - no selection</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452169#M168746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hypothetically, your 2nd formula may make sense, yes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But only if one MRDuration can belong to several TravelLegs. If one record of MRDuration only can belong to &lt;EM&gt;&lt;STRONG&gt;one&lt;/STRONG&gt;&lt;/EM&gt; value of TravelLeg, then the Aggr() is redundant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 17:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452169#M168746</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-03-18T17:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and {1} - no selection</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452170#M168747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Absolutely agree.&amp;nbsp; Just tying to keep it working even with aggr() - which is most likley redundant here.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 17:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452170#M168747</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-18T17:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and {1} - no selection</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452171#M168748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you attach ur qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 17:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452171#M168748</guid>
      <dc:creator />
      <dc:date>2013-03-18T17:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and {1} - no selection</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452172#M168749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wish I could circumvent the aggr but what I have is a table of travel durations based on pairs of post codes and a table of stages of journey (per job) linked by a postcodepair key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am looking to do on the dashboard is provide a total distance travelled but if I use Sum({1} MRDuration) I will get the sum of all the distances held in the distances table not the total distance travelled during all the jobs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I'm making sense... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 08:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452172#M168749</guid>
      <dc:creator>felix18807</dc:creator>
      <dc:date>2013-03-19T08:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and {1} - no selection</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452173#M168750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I do not have the data, I cannot help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if a distance (MRDuration) can belong to/be used by several TravelLegs, then you &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;should&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt; use the Aggr() function just like &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/msolomov" id="jive-393117063919016037367" style="background-color: #ffffff; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;Michael Solomovich&lt;/A&gt; suggests:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1} aggr(SUM({1} MRDuration), TravelLeg))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 09:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452173#M168750</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-03-19T09:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and {1} - no selection</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452174#M168751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys I believe that has resolved my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 10:28:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-1-no-selection/m-p/452174#M168751</guid>
      <dc:creator>felix18807</dc:creator>
      <dc:date>2013-03-19T10:28:15Z</dc:date>
    </item>
  </channel>
</rss>

