<?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: return values on one line in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758775#M472215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(sum({1&amp;lt; VAL_RPT.VAL_DATE = p(Date_calcul), VAL_RPT.PORT_NO = {$(vR_OBL_PORT_NO)} &amp;gt;} VAL_RPT.MKT_VALUE) , VAL_RPT.PORT_CODE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above expression is grouping on VAL_RPT.PORT_CODE,that's the reason its returning only for one line.&lt;/P&gt;&lt;P&gt;by default it will display for first record in the group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Jan 2015 12:54:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-24T12:54:37Z</dc:date>
    <item>
      <title>AGGR: return values on one line</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758772#M472212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I get values for every line?&lt;/P&gt;&lt;P&gt;I'm suppose to show for each "Portefeuille" on it's own, the total "Portefeuille" market value.&lt;/P&gt;&lt;P&gt;The values I get with the expression below are pretty accurate, but they are returned only for one line.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76131_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Total is as follows:&lt;/P&gt;&lt;P&gt;=sum(aggr(sum({1&amp;lt; VAL_RPT.VAL_DATE = p(Date_calcul), VAL_RPT.PORT_NO = {$(vR_OBL_PORT_NO)} &amp;gt;} VAL_RPT.MKT_VALUE) , VAL_RPT.PORT_CODE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 22:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758772#M472212</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2015-01-23T22:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR: return values on one line</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758773#M472213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simon,&lt;/P&gt;&lt;P&gt;after dimension Emetteur I see there is another dimension: you can try to make tha aggregation even on this field&lt;/P&gt;&lt;P&gt;writing sum(aggr(sum(.....), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;VAL_RPT.PORT_CODE, ThirdDimension)).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If it is not correct, you had better to attach a sample qvw.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 12:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758773#M472213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-24T12:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR: return values on one line</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758774#M472214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=sum(aggr(NODISTINCT sum({1&amp;lt; VAL_RPT.VAL_DATE = p(Date_calcul), VAL_RPT.PORT_NO = {$(vR_OBL_PORT_NO)} &amp;gt;} VAL_RPT.MKT_VALUE) , VAL_RPT.PORT_CODE))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NODISTINCT&amp;nbsp; should return a value for every record.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Matt&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 12:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758774#M472214</guid>
      <dc:creator />
      <dc:date>2015-01-24T12:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR: return values on one line</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758775#M472215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(sum({1&amp;lt; VAL_RPT.VAL_DATE = p(Date_calcul), VAL_RPT.PORT_NO = {$(vR_OBL_PORT_NO)} &amp;gt;} VAL_RPT.MKT_VALUE) , VAL_RPT.PORT_CODE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above expression is grouping on VAL_RPT.PORT_CODE,that's the reason its returning only for one line.&lt;/P&gt;&lt;P&gt;by default it will display for first record in the group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jan 2015 12:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758775#M472215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-24T12:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR: return values on one line</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758776#M472216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Elena: there were dimensions, and I had tried taking them out before posting this, with no avail. I really need that figure to show the grouping on PORT_CODE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthew: NODISTINCT returns a value for each line, but are insanely high figures that I can't comprehend &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BUT, it was the right answer after all, I just needed to take out the sum preceding the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(NODISTINCT sum({1&amp;lt; VAL_RPT.VAL_DATE = p(Date_calcul), VAL_RPT.PORT_NO = {$(vR_OBL_PORT_NO)} &amp;gt;} VAL_RPT.MKT_VALUE) , VAL_RPT.PORT_CODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU ALL!!!!!&lt;/P&gt;&lt;P&gt;I love this community. &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, 26 Jan 2015 14:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758776#M472216</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2015-01-26T14:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR: return values on one line</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758777#M472217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Simon, very helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 05:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-return-values-on-one-line/m-p/758777#M472217</guid>
      <dc:creator>yink-hpv</dc:creator>
      <dc:date>2018-01-11T05:26:37Z</dc:date>
    </item>
  </channel>
</rss>

