<?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 with variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195425#M385684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really know what you have except the expression you have shared. Can you share some information as to what exactly are you trying to do? May be a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2016 12:24:41 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-13T12:24:41Z</dc:date>
    <item>
      <title>aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195416#M385675</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;is it possible to aggregate from a variable?&lt;/P&gt;&lt;P&gt;tried it like this&lt;/P&gt;&lt;P&gt;=FirstSortedValue(PAYMENT_TYPE, -Aggr($(Amount$), &lt;SPAN style="font-size: 13.3333px;"&gt;PAYMENT_TYPE&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;but didn't retrieve..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;advanced thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195416#M385675</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2016-10-13T11:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195417#M385676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to. I am guessing that Amount$ is your variable? How do you define it? I mean what is the expression behind it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195417#M385676</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T11:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195418#M385677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sunny, behind it there are two variables divided:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Amount$ = mApproved / mTotalAmount&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195418#M385677</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2016-10-13T11:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195419#M385678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahaha and how are those defined? Can you share a sample maybe?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195419#M385678</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T11:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195420#M385679</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: 12px; background-color: #f2f2f2;"&gt;mApproved :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;STATUS={'Approved'}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;mTotalAmount:&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: 12px; background-color: #f2f2f2;"&gt;sum(&lt;SPAN style="font-size: 13.3333px;"&gt;AMOUNT)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195420#M385679</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2016-10-13T11:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195421#M385680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, can you try to check if this is working or not?&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;=FirstSortedValue(PAYMENT_TYPE, -Aggr(&lt;SPAN style="color: #ff0000;"&gt;Sum({&amp;lt;STATUS = {'Approved'}&amp;gt;} AMOUNT)/Sum(AMOUNT)&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PAYMENT_TYPE&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if that works, then it is the way you have defined your variables that might be causing an issue. It would be faster if you are able to share a sample, if not, then we will slowly troubleshoot this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195421#M385680</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T11:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195422#M385681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;tried it with the expression but it didn't work.&lt;/P&gt;&lt;P&gt;set the &lt;SPAN style="font-size: 13.3333px;"&gt;expression &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;in a &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;variable 'vTest' it retrieved the value..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vTest in the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;aggregate again didn't work...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195422#M385681</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2016-10-13T12:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195423#M385682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried it with expiration? Not sure I understand what you mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195423#M385682</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T12:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195424#M385683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;expression &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195424#M385683</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2016-10-13T12:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195425#M385684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really know what you have except the expression you have shared. Can you share some information as to what exactly are you trying to do? May be a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195425#M385684</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T12:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195426#M385685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;retrieve &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;PAYMENT_TYPE (Name)&amp;nbsp; by the maximum amount (amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195426#M385685</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2016-10-13T12:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195427#M385686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then this should work unless you have duplicates&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=FirstSortedValue(PAYMENT_TYPE, -Aggr(&lt;SPAN style="color: #ff0000;"&gt;Sum(AMOUNT)&lt;/SPAN&gt;, PAYMENT_TYPE))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can do this if you have duplicates and you want to pick one name&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=FirstSortedValue(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT&lt;/SPAN&gt; PAYMENT_TYPE, -Aggr(Sum(AMOUNT), PAYMENT_TYPE))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this if you wish to show all PAYMENT_TYPE separated by commas&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat(DISTINCT {&amp;lt;PAYMENT_TYPE = {"=Rank(Sum(AMOUNT)) &amp;lt; 2"}&amp;gt;} &lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;PAYMENT_TYPE)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195427#M385686</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T12:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195428#M385687</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: 12px; background-color: #f2f2f2;"&gt;!!!duplicates !!!&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: 12px; background-color: #f2f2f2;"&gt;this was the issue&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: 12px; background-color: #f2f2f2;"&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: 12px; background-color: #f2f2f2;"&gt;thank you very much!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195428#M385687</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2016-10-13T12:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: aggr with variables</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195429#M385688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-variables/m-p/1195429#M385688</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T12:43:01Z</dc:date>
    </item>
  </channel>
</rss>

