<?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: A Lot of AGGR Functions in a Quartile Chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141791#M20232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried adding NODISTINCT with your Aggr() functions? Aggr() seems to have issue with synthetic dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;If(ValueList('Q1','Q2','Q3','Q4') = 'Q1', &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Aggr(&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT&lt;/SPAN&gt; If(Rank(Aggr(&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT&lt;/SPAN&gt; Sum(Loan_Amount), [Account Executive]))&amp;lt;Count(TOTAL DISTINCT [Account Executive])/4,Sum(Loan_Amount)),[Account Executive])),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ValueList&lt;/SPAN&gt;('Q1','Q2','Q3','Q4') = 'Q2',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If&lt;/SPAN&gt;&lt;/SPAN&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Rank&lt;/SPAN&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum&lt;/SPAN&gt;&lt;/SPAN&gt;(Loan_Amount),[Account Executive]))&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count&lt;/SPAN&gt;(TOTAL DISTINCT [Account Executive])/4,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum&lt;/SPAN&gt;(Loan_Amount)),[Account Executive]))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 14:02:58 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-13T14:02:58Z</dc:date>
    <item>
      <title>A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141785#M20226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this quartile chart, but only the first one shows up. I've tested this method with other functions, but I think the expression is too long or holding too much data.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Quartile Chart.PNG" class="jive-image image-1" height="205" src="/legacyfs/online/124532_Quartile Chart.PNG" style="height: 205px; width: 224.361px;" width="224" /&gt;&lt;/P&gt;&lt;P&gt;Here's my dimension:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Quartile Dimension.PNG" class="jive-image image-3" height="33" src="/legacyfs/online/124534_Quartile Dimension.PNG" style="height: 33.3551px; width: 227px;" width="227" /&gt;&lt;/P&gt;&lt;P&gt;Here's my expression (without Q3 and Q4 filled in):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Quartile Expression.PNG" class="jive-image image-2" height="39" src="/legacyfs/online/124533_Quartile Expression.PNG" style="height: 39px; width: 780px;" width="780" /&gt;&lt;/P&gt;&lt;P&gt;Can anyone help see a problem or suggest ways I can get this to work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141785#M20226</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2024-11-16T10:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141786#M20227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample may be to test out other options?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 13:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141786#M20227</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T13:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141787#M20228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot share any of the source data, but I can say that there are about 100 records in the [Account Executive] field, and about 4,000 records in the Loan_Amount field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 13:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141787#M20228</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-05-13T13:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141788#M20229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post your expression as text rather than a (rather small) image,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 13:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141788#M20229</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-05-13T13:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141789#M20230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF(VALUELIST('Q1','Q2','Q3','Q4') = 'Q1', SUM(AGGR(IF(RANK(AGGR(SUM(Loan_Amount),[Account Executive]))&amp;lt;COUNT(TOTAL DISTINCT [Account Executive])/4,SUM(Loan_Amount)),[Account Executive])),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(VALUELIST('Q1','Q2','Q3','Q4') = 'Q2', SUM(AGGR(IF(RANK(AGGR(SUM(Loan_Amount),[Account Executive]))&amp;gt;COUNT(TOTAL DISTINCT [Account Executive])/4,SUM(Loan_Amount)),[Account Executive]))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 13:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141789#M20230</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-05-13T13:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141790#M20231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's just looking like I can't do multiple AGGR functions on the same fields within the same expression. Could this be why only the first one is working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 14:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141790#M20231</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-05-13T14:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141791#M20232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried adding NODISTINCT with your Aggr() functions? Aggr() seems to have issue with synthetic dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;If(ValueList('Q1','Q2','Q3','Q4') = 'Q1', &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Aggr(&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT&lt;/SPAN&gt; If(Rank(Aggr(&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT&lt;/SPAN&gt; Sum(Loan_Amount), [Account Executive]))&amp;lt;Count(TOTAL DISTINCT [Account Executive])/4,Sum(Loan_Amount)),[Account Executive])),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ValueList&lt;/SPAN&gt;('Q1','Q2','Q3','Q4') = 'Q2',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If&lt;/SPAN&gt;&lt;/SPAN&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Rank&lt;/SPAN&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum&lt;/SPAN&gt;&lt;/SPAN&gt;(Loan_Amount),[Account Executive]))&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count&lt;/SPAN&gt;(TOTAL DISTINCT [Account Executive])/4,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum&lt;/SPAN&gt;(Loan_Amount)),[Account Executive]))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 14:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141791#M20232</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T14:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141792#M20233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont really understand your expression - there seems to be no difference between the two legs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having said that, you have another problem in that the Aggr() dimensions need to include all the chart dimensions in addition to the dimensions required for the expression. If you don't you will only see limited data (like the one bar you are seeing). Aggr() dimensions can only be fields, not calculated dimensions, so that rules out using purely synthetic dimensions like ValueList as a chart dimension with Aggr() expressions in the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 14:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141792#M20233</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-05-13T14:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141793#M20234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to add a Quarter field to your calendar so you can use a field for the dimension rather than the ValueList.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 14:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141793#M20234</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-05-13T14:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141794#M20235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heyyyy that seems to have worked! Are you able to explain exactly what NODISTINCT is doing in this situation?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Quartile Chart Working.PNG" class="jive-image image-1" height="222" src="/legacyfs/online/124542_Quartile Chart Working.PNG" style="height: 221.571px; width: 231px;" width="231" /&gt;&lt;/P&gt;&lt;P&gt;The chart shows the expression as &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt; has it, but I have also reworked my Quartile Calculations so they use set analysis and only &lt;EM&gt;one&lt;/EM&gt; AGGR function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt;[Account Executive]={"=RANK(AGGR(&lt;SPAN style="color: #ff0000;"&gt;NODISTINCT&lt;/SPAN&gt; SUM(Loan_Amount),[Account Executive]),4)&amp;gt;COUNT(TOTAL DISTINCT [Account Executive])*.75"}&amp;gt;} Loan_Amount))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 14:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141794#M20235</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-05-13T14:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141795#M20236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It some kind of grain mismatch issue which is basically addressed by NODISTINCT. To read about grain mismatch look at HIC's blog here: &lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 14:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141795#M20236</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T14:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141796#M20237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/203738"&gt;Using multiple variables in ValueList that are AGG() functions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 14:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141796#M20237</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T14:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141797#M20238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To clarify what my expression is trying to do: find the SUM of Loan_Amounts for Account Executives who are in the Upper 25%, 25-50%, 50-75%, and lower 25% (&lt;EM&gt;&lt;STRONG&gt;quartiles &lt;/STRONG&gt;&lt;/EM&gt;which has nothing to do with date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In example I gave above, the only difference is the orientation of the &amp;gt;. The example was really finding the upper 25% of Account Executives and the lower 75%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will post the full expression and what the chart looks like shortly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 15:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141797#M20238</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-05-13T15:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141798#M20239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you really need the aggr() in the advanced search (which is already grouping by [Account Executive]?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM({&amp;lt;[Account Executive]={"=RANK( SUM(Loan_Amount) ,4)&amp;gt;COUNT(TOTAL DISTINCT [Account Executive])*.75"}&amp;gt;} Loan_Amount))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should probably work as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 15:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141798#M20239</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-13T15:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141799#M20240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is in all it's glory! The chart shows the SUM of Loan_Amounts for Account Executives who are ranked in the Upper 25% of all &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Account Executives, Upper Middle 25-50%, Lower Middle 50-75%, and Lower 25%.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="124554" alt="Quartile Chart Completed.PNG" class="jive-image image-1" height="193" src="/legacyfs/online/124554_Quartile Chart Completed.PNG" style="height: 193px; width: 210.687px;" width="211" /&gt;&lt;/P&gt;&lt;P&gt;The massive expression is as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(VALUELIST('Q1','Q2','Q3','Q4') = 'Q1',SUM({&amp;lt;[Account Executive]={"=RANK(SUM(Loan_Amount),4)&amp;lt;$(vQ1)"}&amp;gt;} Loan_Amount),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(VALUELIST('Q1','Q2','Q3','Q4') = 'Q2',SUM({&amp;lt;[Account Executive]={"=RANK(SUM(Loan_Amount),4)&amp;lt;$(vQ2) AND RANK(SUM(Loan_Amount),4)&amp;gt;=$(vQ1)"}&amp;gt;} Loan_Amount),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(VALUELIST('Q1','Q2','Q3','Q4') = 'Q3', SUM({&amp;lt;[Account Executive]={"=RANK(SUM(Loan_Amount),4)&amp;lt;$(vQ3) AND RANK(SUM(Loan_Amount),4)&amp;gt;=$(vQ2)"}&amp;gt;} Loan_Amount),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(VALUELIST('Q1','Q2','Q3','Q4') = 'Q4',SUM({&amp;lt;[Account Executive]={"=RANK(SUM(Loan_Amount),4)&amp;gt;=$(vQ3)"}&amp;gt;} Loan_Amount)))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables in this equation were used to keep the length of the expression manageable and I use them elsewhere in the App. They are taking the count of distinct Account Executives and dividing by 2 and 4 to get vQ2 and vQ1, and multiplying by .75 to get vQ3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 15:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141799#M20240</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-05-13T15:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141800#M20241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah that actually works, too. I don't understand how this works behind the scenes, but it is giving me the correct data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do, however, rely on AGGR in other areas of my app which were also not working due to the issue that &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ identified in which case I will have to do more testing of your proposed solution to see if they work in those cases as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 15:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141800#M20241</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-05-13T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141801#M20242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry I'm terribly late to the party, but allow me nevertheless explain some of the concepts mentioned here and perhaps offer a more elegant alternative:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. AGGR and ValueList - so, the issue is not quite a "grain mismatch", as Sunny suggested, but rather related to the definition of a DISTINCT vs. NODISTINCT AGGR(). The DISTINCT AGGR, by definition, returns &lt;STRONG&gt;&lt;EM&gt;a single value for each distinct combination of the dimensions&lt;/EM&gt;&lt;/STRONG&gt;. This chart, because of the ValueList, technically requires multiple values - one for Q1, one for Q2, one for Q3 and one for Q4. The conditional logic that renders only one AGGR for each single value, is being essentially ignored - the AGGR still returns a single value, hence the initial problem of only having one bar. And, since AGGR() dimensions can only include fields (not functions), adding the VALUELIST is not an option. The solution can be achieved with NODISTINCT, however it's not always the correct calculation (depending on the expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The working solution can be, indeed, achieved without the use of AGGR(), as Stephan had suggested - because using Advanced Search in Set Analysis contains an implied AGGR() on the filtered Dimension (Account Executive in this case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. On the other hand, AGGR() could be used here in a lot more elegant way - replacing the ValueList and the 4 nested IF() functions in the Expression. The Calculated Dimension with the AGGR() function can calculate the Quartile per Account Executive, and the expression can be a simple sum(Amount). I'll try to formulate it here, without guaranteeing a 100% accurate syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculated Dimension for Quartile:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= AGGR(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q' &amp;amp; ceil(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RANK(SUM(Loan_Amount),4)/COUNT(DISTINCT TOTAL &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Account Executive]) * 4)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Account Executive])&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression for Loan Amount:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM(Loan_Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are interested in learning more about advanced uses of AGGR() and Set Analysis, please consider attending one of the upcoming sessions of the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming soon to Austin, TX and to Johannesburg, South Africa. You can also learn these and many other Qlik techniques from my recently published book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 16:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141801#M20242</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-05-13T16:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141802#M20243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well this is a lot smarter than what I was doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 17:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141802#M20243</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-05-13T17:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141803#M20244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm going to write a blog post, describing a similar issue and the possible solutions &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 17:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141803#M20244</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-05-13T17:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: A Lot of AGGR Functions in a Quartile Chart</title>
      <link>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141804#M20245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, let me know if you'd like any additional input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 18:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-Lot-of-AGGR-Functions-in-a-Quartile-Chart/m-p/1141804#M20245</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-05-13T18:14:10Z</dc:date>
    </item>
  </channel>
</rss>

