<?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: Banding Aggregations within several ranges in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124394#M19534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Hi Sunny,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Unfortunately this seems to just display the sum total for each order rather than banding them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Basically, I am looking for 10+ bands (£0 - £10, £10 - £20, £20 - £30 etc.) which refer to the basket value of each order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Within those bands, I am trying to report the total sum of sales for all orders with a basket value within those bands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Hope you can help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevermind, this does actually band them, however I have no control over the bandings. Do you know if I can specify the individual brackets? For example, after 40 - 50, I might want 50-75. Otherwise, do you know if I can force the bandings to appear in incremental numeric order to a limitation of, say, 10?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2016 16:30:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-31T16:30:23Z</dc:date>
    <item>
      <title>Banding Aggregations within several ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124392#M19532</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 may be thinking about this entirely the wrong way, but I am trying to report total sales based on basket value bands. For example, for all orders below £10, we generated a total of £100, orders from £10-£20 we generated £500 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I have the following as a dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(sum([Sales]), [Invoice]) //**To total line by line sales values against each invoice (ie total order value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially I was then attempting to band them as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Sales]={"&amp;gt;=0 &amp;lt;10"}&amp;gt;} [Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This however left me with 0. So I decided the best bet would be to try to create the bands within the dimension and simply use the following measure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum([Sales]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I cannot think how to create the bands. Any assistance will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 15:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124392#M19532</guid>
      <dc:creator />
      <dc:date>2016-08-31T15:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Banding Aggregations within several ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124393#M19533</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;Dimension:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(Class(Sum(Sales), 10), Invoice)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 15:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124393#M19533</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-31T15:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Banding Aggregations within several ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124394#M19534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Hi Sunny,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Unfortunately this seems to just display the sum total for each order rather than banding them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Basically, I am looking for 10+ bands (£0 - £10, £10 - £20, £20 - £30 etc.) which refer to the basket value of each order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Within those bands, I am trying to report the total sum of sales for all orders with a basket value within those bands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Hope you can help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevermind, this does actually band them, however I have no control over the bandings. Do you know if I can specify the individual brackets? For example, after 40 - 50, I might want 50-75. Otherwise, do you know if I can force the bandings to appear in incremental numeric order to a limitation of, say, 10?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124394#M19534</guid>
      <dc:creator />
      <dc:date>2016-08-31T16:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Banding Aggregations within several ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124395#M19535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use if statement in that case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Sum(Sales) &amp;gt; 0 and Sum(Sales) &amp;lt; 10, Dual('0-10', 1),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;If(Sum(Sales) &amp;gt;= 10 and Sum(Sales) &amp;lt; 20, Dual('10-20', 2),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 13.3333px;"&gt;If(Sum(Sales) &amp;gt;= 20 and Sum(Sales) &amp;lt; 30, Dual('20-30', 3),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 13.3333px;"&gt;If(Sum(Sales) &amp;gt;= 30 and Sum(Sales) &amp;lt; 40, Dual('30-40', 4),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 13.3333px;"&gt;If(Sum(Sales) &amp;gt;= 40 and Sum(Sales) &amp;lt; 50, Dual('40-50', 5),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;If(Sum(Sales) &amp;gt;= 50 and Sum(Sales) &amp;lt; 75, Dual('50-75', 6))))))), Invoice)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124395#M19535</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-31T16:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Banding Aggregations within several ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124396#M19536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I needed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much - time to research "Dual".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124396#M19536</guid>
      <dc:creator />
      <dc:date>2016-08-31T16:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Banding Aggregations within several ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124397#M19537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dual is to maintain the sort order, this would have worked without the dual, but then you would have worried about getting the order of ranges right &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 17:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Banding-Aggregations-within-several-ranges/m-p/1124397#M19537</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-31T17:06:14Z</dc:date>
    </item>
  </channel>
</rss>

