<?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 in dimension does not return multiple values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87800#M14319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I got that and it works for this one&lt;/P&gt;&lt;P&gt;but &lt;/P&gt;&lt;P&gt;what if i need to include only Address and Rep&lt;/P&gt;&lt;P&gt;is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2018 01:08:59 GMT</pubDate>
    <dc:creator>jduluc12</dc:creator>
    <dc:date>2018-07-16T01:08:59Z</dc:date>
    <item>
      <title>Aggr in dimension does not return multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87796#M14315</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 am using Aggr in dimension like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr( if( sum({&amp;lt;Type={'LA'}&amp;gt;}Amount) &amp;gt; 0, Name ), Address, Rep).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is more than one "Name" for the combination of "Address" and "Rep" then it returns NULL.&lt;/P&gt;&lt;P&gt;If there is only one "Name" for the combination of &lt;SPAN style="font-size: 13.3333px;"&gt;"Address" and "Rep" then it returns that value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I also tried with NODISTINCT but it did not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What am i doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 00:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87796#M14315</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2018-07-16T00:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr in dimension does not return multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87797#M14316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&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;STRONG&gt;Aggr(If(Sum({&amp;lt;Type={'LA'}&amp;gt;} Amount) &amp;gt; 0, Name), &lt;SPAN style="color: #ff0000;"&gt;Name&lt;/SPAN&gt;, Address, Rep)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&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;STRONG&gt;Aggr(If(Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL &amp;lt;Address, Rep&amp;gt;&lt;/SPAN&gt; {&amp;lt;Type={'LA'}&amp;gt;} Amount) &amp;gt; 0, Name), &lt;SPAN style="color: #ff0000;"&gt;Name,&lt;/SPAN&gt; Address, Rep)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 00:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87797#M14316</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-16T00:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr in dimension does not return multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87798#M14317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the first one and it seems to be working.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;So it seems that aggr can not return multiple values so you add name also in the dimensions so each value gets returned becasue then it will be only one value per name,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 00:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87798#M14317</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2018-07-16T00:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr in dimension does not return multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87799#M14318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup, but keep in mind that now &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Type={'LA'}&amp;gt;} Amount) &amp;gt; 0&lt;/STRONG&gt; is also evaluated at Name (in addition to Address and Rep) level vs. just checking &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Type={'LA'}&amp;gt;} Amount) &amp;gt; 0 &lt;/STRONG&gt;against Address and Rep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 00:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87799#M14318</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-16T00:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr in dimension does not return multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87800#M14319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I got that and it works for this one&lt;/P&gt;&lt;P&gt;but &lt;/P&gt;&lt;P&gt;what if i need to include only Address and Rep&lt;/P&gt;&lt;P&gt;is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 01:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87800#M14319</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2018-07-16T01:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr in dimension does not return multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87801#M14320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean include only Address and Rep? Not sure I understand?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 01:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87801#M14320</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-16T01:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr in dimension does not return multiple values</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87802#M14321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was responding to your comment&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;Yup, but keep in mind that now &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Type={'LA'}&amp;gt;} Amount) &amp;gt; 0&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; is also evaluated at Name (in addition to Address and Rep) level vs. just checking &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Type={'LA'}&amp;gt;} Amount) &amp;gt; 0 &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;against Address and Rep."&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;Right now the expression is getting evaluated at Name level too.&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;So I was asking what if i do not want to evaluate the expression at the Name level and just at Address and rep level but still include all names i.e. Aggr() should return multiple values.&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;Is it even possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 00:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-in-dimension-does-not-return-multiple-values/m-p/87802#M14321</guid>
      <dc:creator>jduluc12</dc:creator>
      <dc:date>2018-07-17T00:10:48Z</dc:date>
    </item>
  </channel>
</rss>

