<?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: Sales Value Buckets over time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sales-Value-Buckets-over-time/m-p/2140431#M1224873</link>
    <description>&lt;P&gt;Create a calculated dimention and use it in Generic chart&lt;BR /&gt;First:&lt;/P&gt;
&lt;P&gt;BucketDimension:&lt;BR /&gt;LOAD &lt;BR /&gt;*,&lt;BR /&gt;ApplyMap('BucketMapping', Sales) as Bucket&lt;BR /&gt;INLINE [&lt;BR /&gt;Bucket, MinRange, MaxRange&lt;BR /&gt;1k-5k, 1000, 5000&lt;BR /&gt;5k-10k, 5001, 10000&lt;BR /&gt;10k-15k, 10001, 15000&lt;BR /&gt;// Add more buckets as needed&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;// Create a mapping table for the calculated dimension&lt;BR /&gt;BucketMapping:&lt;BR /&gt;MAPPING LOAD&lt;BR /&gt;Bucket,&lt;BR /&gt;Sales&lt;BR /&gt;INLINE [&lt;BR /&gt;1k-5k, 2500&lt;BR /&gt;5k-10k, 7500&lt;BR /&gt;10k-15k, 12500&lt;BR /&gt;// Add more mappings as needed&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Then:&lt;BR /&gt;in Generics chart&lt;BR /&gt;Dimension: Bucket&lt;BR /&gt;Expression: Sum(Sales)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2023 15:47:04 GMT</pubDate>
    <dc:creator>Aasir</dc:creator>
    <dc:date>2023-11-22T15:47:04Z</dc:date>
    <item>
      <title>Sales Value Buckets over time</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Value-Buckets-over-time/m-p/2139746#M1224867</link>
      <description>&lt;P&gt;Good afternoon.&lt;/P&gt;
&lt;P&gt;I have a requirement to show bucketed Sales Values over time. I’ve created the buckets and can get each bucket to return the correct Sales Values. For example.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Buckets.PNG" style="width: 153px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120299i294F81C1DBB4274B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Buckets.PNG" alt="Buckets.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For testing I’ve created example charts for most of the Buckets that are ‘hard code’. Although the example charts are showing data, they are not 100% correct – until you select the related Bucket.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coded charts.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120300iDC5BEA324E10D3C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Coded charts.PNG" alt="Coded charts.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When one actually selected a Bucket, the correct values show. For example, if you select the 5k-10k bucket the related chart returns the correct Values. All the values for each month per customer ranges between 5000 and 1000.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5 to 10 selected.PNG" style="width: 950px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120301i7D6C7CC9A82B54B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="5 to 10 selected.PNG" alt="5 to 10 selected.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My question is, I don’t want a chart for each bucket. I need assistance with the expression in a Generic chart that shows the values when a Bucket is selected. I include the xlsx as well as the qvw file. If the explanation needs so clearing up, please feel free to reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would appreciate any guidance on this.&lt;/P&gt;
&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 11:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Value-Buckets-over-time/m-p/2139746#M1224867</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2023-11-21T11:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Value Buckets over time</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Value-Buckets-over-time/m-p/2140420#M1224872</link>
      <description>&lt;P&gt;Your buckets are script-generated against single-values but within the charts you are summing the values and this against several dimensions. This is a logical conflict.&lt;/P&gt;
&lt;P&gt;I could imagine that an UI approach with a calculated dimension would be more suitable for your views. Maybe by integrating it directly in the table, like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marcus_sommer_1-1700665893584.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120425iBB156AE5560B401A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marcus_sommer_1-1700665893584.png" alt="marcus_sommer_1-1700665893584.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It's here simplified done with a class() around an aggr() which ensured that the buckets are calculated in regard to the period-fields and the customer. One customer is selected to show that its sales belong to different buckets.&lt;/P&gt;
&lt;P&gt;You will need to play a bit with it to find what do you want to show - each single value, against the customer and/or the periods and/or further fields? Also with the buckets-sizes because class() itself applies only one size at the time whereby this size might be a variable and could then be easily changed. With some rangemin/rangemax wrapping the lower and upper outliers could be fetched and with some more pick(match()) and/or if-loops also the sizes itself whereby it would increase the complexity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 15:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Value-Buckets-over-time/m-p/2140420#M1224872</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-11-22T15:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Value Buckets over time</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Value-Buckets-over-time/m-p/2140431#M1224873</link>
      <description>&lt;P&gt;Create a calculated dimention and use it in Generic chart&lt;BR /&gt;First:&lt;/P&gt;
&lt;P&gt;BucketDimension:&lt;BR /&gt;LOAD &lt;BR /&gt;*,&lt;BR /&gt;ApplyMap('BucketMapping', Sales) as Bucket&lt;BR /&gt;INLINE [&lt;BR /&gt;Bucket, MinRange, MaxRange&lt;BR /&gt;1k-5k, 1000, 5000&lt;BR /&gt;5k-10k, 5001, 10000&lt;BR /&gt;10k-15k, 10001, 15000&lt;BR /&gt;// Add more buckets as needed&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;// Create a mapping table for the calculated dimension&lt;BR /&gt;BucketMapping:&lt;BR /&gt;MAPPING LOAD&lt;BR /&gt;Bucket,&lt;BR /&gt;Sales&lt;BR /&gt;INLINE [&lt;BR /&gt;1k-5k, 2500&lt;BR /&gt;5k-10k, 7500&lt;BR /&gt;10k-15k, 12500&lt;BR /&gt;// Add more mappings as needed&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Then:&lt;BR /&gt;in Generics chart&lt;BR /&gt;Dimension: Bucket&lt;BR /&gt;Expression: Sum(Sales)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 15:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Value-Buckets-over-time/m-p/2140431#M1224873</guid>
      <dc:creator>Aasir</dc:creator>
      <dc:date>2023-11-22T15:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Value Buckets over time</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Value-Buckets-over-time/m-p/2141287#M1224881</link>
      <description>&lt;P&gt;Thanks Marcus.&amp;nbsp;&lt;BR /&gt;It will need some fiddling, but I will be able to get it to work, well enough.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 06:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Value-Buckets-over-time/m-p/2141287#M1224881</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2023-11-26T06:07:29Z</dc:date>
    </item>
  </channel>
</rss>

