<?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: Custom Range Bucket in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2003376#M83079</link>
    <description>&lt;P&gt;All this time I thought this is a dimension, it should be a dimension to split in different rows.&lt;/P&gt;
&lt;P&gt;I'm not sure how that is working, it might work on individual Sales values, but not grouping by order, product or customer.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 07:07:40 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2022-11-11T07:07:40Z</dc:date>
    <item>
      <title>Custom Range Bucket</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2002776#M83044</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hoping you can help with the below:&lt;/P&gt;
&lt;P&gt;I'm trying to create some customized ranges,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93354i6ABC4EC8BD52CCA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However it is currently aggregating the Sum(Sales) into the one value and disregards the ranges:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93355iB634512AFCE34B64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(Aggr(SUM(Sales),Country) &amp;gt; $(vRangeMax),'&amp;gt;'&amp;amp;$(vRangeMax),&lt;/P&gt;
&lt;P&gt;if(Aggr(SUM(Sales),Country) &amp;lt; $(vRangeMin),'&amp;lt;'&amp;amp;$(vRangeMin),&lt;/P&gt;
&lt;P&gt;if(Aggr(SUM(Sales),Country) &amp;gt; $(vRangeMin) and Aggr(SUM(Sales),Country) &amp;lt; $(vRangeMax),$(vRangeMin)&amp;amp;' - '&amp;amp;$(vRangeMax))))&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 05:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2002776#M83044</guid>
      <dc:creator>Fabien</dc:creator>
      <dc:date>2022-11-10T05:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Range Bucket</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2002820#M83049</link>
      <description>&lt;P&gt;Hi, if each country sales is distributed in ranges it means that the sales are being grouped by something below country, it is by order? by customer? by product?&lt;/P&gt;
&lt;P&gt;Add that field to the aggr to split the value, like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(Aggr(SUM(Sales),Country,&lt;STRONG&gt;Product&lt;/STRONG&gt;) &amp;gt; $(vRangeMax),'&amp;gt;'&amp;amp;$(vRangeMax),...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 07:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2002820#M83049</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-10T07:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Range Bucket</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2002961#M83057</link>
      <description>&lt;P&gt;Thanks but I have tried that before and it just shows a Null value...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 10:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2002961#M83057</guid>
      <dc:creator>Fabien</dc:creator>
      <dc:date>2022-11-10T10:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Range Bucket</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2002967#M83058</link>
      <description>&lt;P&gt;Yes, in that case also the if should be inside the aggr:&lt;/P&gt;
&lt;P&gt;Aggr(SUM(Sales)&amp;gt; $(vRangeMax),'&amp;gt;'&amp;amp;$(vRangeMax),...,Country,Product)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 11:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2002967#M83058</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-10T11:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Range Bucket</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2003295#M83070</link>
      <description>&lt;P&gt;That did not work either unfortunately...&lt;/P&gt;
&lt;P&gt;I have attached a sample of the data for reference.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 23:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2003295#M83070</guid>
      <dc:creator>Fabien</dc:creator>
      <dc:date>2022-11-10T23:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Range Bucket</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2003318#M83072</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Try below&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;=AGGR( if(&amp;nbsp;&lt;SPAN&gt;SUM(Sales) &amp;gt;&amp;nbsp;$(vRangeMax) ,'&amp;gt;'&amp;amp;$(vRangeMax)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;,if(&amp;nbsp;SUM(Sales) &amp;lt; $(vRangeMin),'&amp;lt;'&amp;amp;$(vRangeMin),'&amp;gt;'&amp;amp;$(vRangeMin) &amp;amp; '&amp;lt;'&amp;amp;$(vRangeMax) ) ) ,Country,Product)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 02:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2003318#M83072</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-11-11T02:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Range Bucket</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2003352#M83078</link>
      <description>&lt;P&gt;I was able to find a solution by creating a Dimension instead of a Measure:&lt;/P&gt;
&lt;P&gt;if(Sales &amp;gt;=$(vRangeMax),'&amp;gt; '&amp;amp;$(vRangeMax),&lt;BR /&gt;if(Sales &amp;lt;= $(vRangeMin),'&amp;lt; '&amp;amp;$(vRangeMin),'&amp;gt; '&amp;amp;$(vRangeMin)&amp;amp;' &amp;lt; '&amp;amp;$(vRangeMax)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 05:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2003352#M83078</guid>
      <dc:creator>Fabien</dc:creator>
      <dc:date>2022-11-11T05:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Range Bucket</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2003376#M83079</link>
      <description>&lt;P&gt;All this time I thought this is a dimension, it should be a dimension to split in different rows.&lt;/P&gt;
&lt;P&gt;I'm not sure how that is working, it might work on individual Sales values, but not grouping by order, product or customer.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 07:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Range-Bucket/m-p/2003376#M83079</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-11T07:07:40Z</dc:date>
    </item>
  </channel>
</rss>

