<?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: Stratification with Rank(Aggr()) as a dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586073#M217485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first half of the equations is evaluating to text, so when you display the dimension in a chart it will not show in the order you want.&amp;nbsp; Dual assigns a # value to each text i.e '1-150' = 1 so you can sort the values in a chart numerically and get the order you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 15:45:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-30T15:45:29Z</dc:date>
    <item>
      <title>Stratification with Rank(Aggr()) as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586069#M217481</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'm trying to create a dimension that is a stratification of items by spend. I want to bucket the first 150 items, ordered by spend, in bucket '1-150', the next 150 items in bucket '151-300', and so on. I tried a few variations of the below formula in the dimension but nothing is working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Rank(aggr(sum(TotalPrice), Item)) &amp;lt;=150, '1-150',&lt;/P&gt;&lt;P&gt;if(Rank(aggr(sum(TotalPrice), Item)) &amp;lt;=300, '151-300',&lt;/P&gt;&lt;P&gt;if(Rank(aggr(sum(TotalPrice), Item)) &amp;lt;=600, '301-600', '600+')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the error message "Allocated memory exceeded." Can anyone help me build the strat?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 23:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586069#M217481</guid>
      <dc:creator />
      <dc:date>2014-01-29T23:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Stratification with Rank(Aggr()) as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586070#M217482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;class( &lt;/STRONG&gt;rank(aggr(sum(TotalPrice), Item)) &lt;STRONG&gt;,150)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 23:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586070#M217482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-29T23:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Stratification with Rank(Aggr()) as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586071#M217483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DUAL(&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;AGGR(&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; IF(RANK(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(TotalPrice)&lt;/SPAN&gt;)&amp;lt;=150,'1-150',&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&amp;nbsp; IF(RANK(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(TotalPrice)&lt;/SPAN&gt;)&amp;lt;=300,'151-300',&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;&amp;nbsp; IF(RANK(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(TotalPrice)&lt;/SPAN&gt;)&amp;lt;=600,'301-600','600+'&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; )))&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Item&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;AGGR(&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; IF(RANK(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(TotalPrice)&lt;/SPAN&gt;)&amp;lt;=150,1,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&amp;nbsp; IF(RANK(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(TotalPrice)&lt;/SPAN&gt;)&amp;lt;=300,2,&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;&amp;nbsp; IF(RANK(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(TotalPrice)&lt;/SPAN&gt;)&amp;lt;=600,3,4&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; )))&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Item&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 00:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586071#M217483</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2014-01-30T00:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Stratification with Rank(Aggr()) as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586072#M217484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! This works perfectly. Do you mind explaining what the Dual() function is doing to each aggr() function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586072#M217484</guid>
      <dc:creator />
      <dc:date>2014-01-30T15:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Stratification with Rank(Aggr()) as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586073#M217485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first half of the equations is evaluating to text, so when you display the dimension in a chart it will not show in the order you want.&amp;nbsp; Dual assigns a # value to each text i.e '1-150' = 1 so you can sort the values in a chart numerically and get the order you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586073#M217485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-30T15:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Stratification with Rank(Aggr()) as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586074#M217486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couldn't explain better than Michael...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586074#M217486</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2014-01-30T15:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Stratification with Rank(Aggr()) as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586075#M217487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well this is slick, and I should have realized just from looking at the equation. I usually use an inline load for that, but this is much better! Thanks for the explanation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Stratification-with-Rank-Aggr-as-a-dimension/m-p/586075#M217487</guid>
      <dc:creator />
      <dc:date>2014-01-30T15:56:44Z</dc:date>
    </item>
  </channel>
</rss>

