<?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 Argh!!!! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263352#M867930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diane, I just told the correct syntaxis, about the logic... what do you want to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I see you're checking rank from all the records included in aggr() so unless you have [Group No] as dimension or 1 [Group No] selected I don't think this is correct. And in that case the aggr will have no use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF() will return false if the condition is 0, True for any other number, so rank will always return a value&amp;lt;&amp;gt;0 (or null) and this is why every [Group No] is included in the True part. (More than this, the actual way is not evaluting group by group, is evaluating all of them as a unit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you want (jut a guess...):&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;=Aggr(if(Rank(sum({&amp;lt;[Group No] -= { 'GR-000000','GR-A0000' }, [ME]={'ME1610'}&amp;gt;}[&amp;gt;60days]))&amp;lt;=15,[Group No]),[Group No])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2016 13:50:00 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2016-12-01T13:50:00Z</dc:date>
    <item>
      <title>Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263348#M867926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(Rank(sum({&amp;lt;[Group No] -= { 'GR-000000','GR-A0000' }&amp;gt;}[&amp;gt;60days])),[Group No])&amp;lt;=15,[Group No],Null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add in the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ME={'ME1610'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(Rank(sum({&amp;lt;[Group No] -= { 'GR-000000','GR-A0000' },{$&amp;lt;ME={'ME1610'}&amp;gt;}[&amp;gt;60days])),[Group No])&amp;lt;=15,[Group No],Null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it just bring back rubbish. Where an I going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Di&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263348#M867926</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263349#M867927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; {$&amp;lt;ME={'ME1610'}&amp;gt; is not a valid syntax&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 13:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263349#M867927</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2016-12-01T13:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263350#M867928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diane, the syntaxis should be:&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(Aggr(Rank(sum({&amp;lt;[Group No] -= { 'GR-000000','GR-A0000' }, &lt;STRONG&gt;ME&lt;/STRONG&gt;={'ME1610'}&amp;gt;}[&amp;gt;60days])),[Group No])&amp;lt;=15,[Group No],Null())&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 13:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263350#M867928</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-12-01T13:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263351#M867929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats not worked. Just brings back the totals for all the ME's in the file, and not ME1610.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add brackets to the 'ME', but still no luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(Rank(sum({&amp;lt;[Group No] -= { 'GR-000000','GR-A0000' }, [ME]={'ME1610'}&amp;gt;}[&amp;gt;60days])),[Group No])&amp;lt;=15,[Group No],Null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its driving me potty!!! Lol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 13:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263351#M867929</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2016-12-01T13:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263352#M867930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diane, I just told the correct syntaxis, about the logic... what do you want to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I see you're checking rank from all the records included in aggr() so unless you have [Group No] as dimension or 1 [Group No] selected I don't think this is correct. And in that case the aggr will have no use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF() will return false if the condition is 0, True for any other number, so rank will always return a value&amp;lt;&amp;gt;0 (or null) and this is why every [Group No] is included in the True part. (More than this, the actual way is not evaluting group by group, is evaluating all of them as a unit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you want (jut a guess...):&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;=Aggr(if(Rank(sum({&amp;lt;[Group No] -= { 'GR-000000','GR-A0000' }, [ME]={'ME1610'}&amp;gt;}[&amp;gt;60days]))&amp;lt;=15,[Group No]),[Group No])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 13:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263352#M867930</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-12-01T13:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263353#M867931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to rank the top 15 group numbers by &amp;gt;60Days debt, but exclude group numbers 'GR-000000', and 'GR-A0000', and only for the ME = ME1610.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?!&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;Di&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 14:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263353#M867931</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2016-12-01T14:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263354#M867932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you need to add the set analysis to your expression. Assuming you have Sum(Measure), change it to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;ME = {'ME1610'}&amp;gt;} Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 14:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263354#M867932</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-01T14:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263355#M867933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How will that rank the group number by &amp;gt;60 day debt?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 14:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263355#M867933</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2016-12-01T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263356#M867934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not 100% sure what you input and output look like. It was just a guess. Would you be able to provide a sample with expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 14:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263356#M867934</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-01T14:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263357#M867935</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;Not allowed to, but I'll see if I can put something together so you can see what I'm aiming for.&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;Di&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 14:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263357#M867935</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2016-12-01T14:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263358#M867936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diane, have you tried what I posted before?:&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;=Aggr(if(Rank(sum({&amp;lt;[Group No] -= { 'GR-000000','GR-A0000' }, [ME]={'ME1610'}&amp;gt;}[&amp;gt;60days]))&amp;lt;=15,[Group No]),[Group No])&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;I supose this is a calculated dimension, isn't it?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 15:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263358#M867936</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-12-01T15:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263359#M867937</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;I tried, didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, its a calculated dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 15:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263359#M867937</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2016-12-01T15:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263360#M867938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, then I have to join Sunny in the request of a sample. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 17:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263360#M867938</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-12-01T17:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Argh!!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263361#M867939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying to fix this, I actually so of 'fudged' it, and pulled the info I need via a resident load, pulling only data for ME = 'ME1610', and used the ranking formula, minus the ME bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you ever come across something like this again, please tag me in it so I can have a look!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Di &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 10:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Argh/m-p/1263361#M867939</guid>
      <dc:creator>dinicholls</dc:creator>
      <dc:date>2016-12-02T10:29:44Z</dc:date>
    </item>
  </channel>
</rss>

