<?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: aging of buckets in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666680#M50212</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="i want this type of bucketing, i want fields like this using over_due_days field" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27070i81C518863220A831/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (1).png" alt="i want this type of bucketing, i want fields like this using over_due_days field" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;i want this type of bucketing, i want fields like this using over_due_days field&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2020 10:36:38 GMT</pubDate>
    <dc:creator>Naresh1</dc:creator>
    <dc:date>2020-01-17T10:36:38Z</dc:date>
    <item>
      <title>aging of buckets</title>
      <link>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666131#M50140</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;iam new to Qliksense, i want&amp;nbsp; to aging of buckets range is 0-15, 16-30, 31-60,61-120,121-180, &amp;gt;180 like this using over_due_days column, can anyone tell me , all these are 0-15, 16-30, 31-60,61-120,121-180, &amp;gt;180 come like fields&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 09:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666131#M50140</guid>
      <dc:creator>Naresh1</dc:creator>
      <dc:date>2020-01-16T09:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: aging of buckets</title>
      <link>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666160#M50147</link>
      <description>&lt;P&gt;I guess you could use intervalmatch. Take a look at this example and adjust it to your needs.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;for i = 230 to 1 step -40
TransactionData:
LOAD 
	floor(rand()*$(i)) as overdue_days
AutoGenerate 230-$(i)
;
next 
;

Intervals:
IntervalMatch(overdue_days) 
LOAD * inline [
Start, End 
0,15 
16,30 
31,60
61,120
121,180
181,
];
Left join
LOAD 
	overdue_days,
	dual(Start &amp;amp; '-' &amp;amp; End, Start) as AgingBucket
Resident Intervals;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Jan 2020 10:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666160#M50147</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-01-16T10:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: aging of buckets</title>
      <link>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666176#M50151</link>
      <description>&lt;P&gt;Thanks, working but i want to dynamically show like this 0-15 one field, 16-30 one field like this&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 11:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666176#M50151</guid>
      <dc:creator>Naresh1</dc:creator>
      <dc:date>2020-01-16T11:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: aging of buckets</title>
      <link>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666192#M50152</link>
      <description>&lt;P&gt;can you please elaborate? what do you mean by dynamically show field? Do you want to create a separate field for each bucket?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 12:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666192#M50152</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-16T12:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: aging of buckets</title>
      <link>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666194#M50153</link>
      <description>&lt;P&gt;yes, i want to create separate field for each bucket range is 0-15, 16- 30, 31-60, 61-120, 121-180, &amp;gt;180 like this&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 12:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666194#M50153</guid>
      <dc:creator>Naresh1</dc:creator>
      <dc:date>2020-01-16T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: aging of buckets</title>
      <link>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666247#M50163</link>
      <description>&lt;P&gt;You could use Generic Load.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 757px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26972iE55D4EBE26D9BF19/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've attached an example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 13:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666247#M50163</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-01-16T13:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: aging of buckets</title>
      <link>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666334#M50168</link>
      <description>&lt;P&gt;another approach&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let vBucketField = 'overdue_days'; // Define field name in your data on which you want to generate bucket. Make sure field name should be same

Intervals:
Load Concat(chr(10)&amp;amp;BucketCondition,',') as BucketFinal;
Load *,
     'if('&amp;amp;Start&amp;amp;if(Bucket like '*-*',' and ')&amp;amp;End&amp;amp;','&amp;amp;'$(vBucketField)) as ['&amp;amp;Bucket&amp;amp;']' as BucketCondition;
Load *,
     if(Bucket like '*-*','$(vBucketField)&amp;gt;='&amp;amp;SubField(Bucket,'-',1),'$(vBucketField)'&amp;amp;Bucket) as Start,
     if(Bucket like '*-*','$(vBucketField)&amp;lt;='&amp;amp;SubField(Bucket,'-',2),'') as End;
LOAD * inline [
Number,Bucket
1,0-15 
2,16-30 
3,31-60
4,61-120
5,121-180
6,&amp;gt;180 ];

Let vBucketCondition =Peek('BucketFinal',0,'Intervals');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you can use this&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;vBucketCondition&amp;nbsp;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;variable into your actual load statement&amp;nbsp; same like a field&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Data:
LOAD *,
     $(vBucketCondition)
FROM YourQVD&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 15:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666334#M50168</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-16T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: aging of buckets</title>
      <link>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666680#M50212</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="i want this type of bucketing, i want fields like this using over_due_days field" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27070i81C518863220A831/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (1).png" alt="i want this type of bucketing, i want fields like this using over_due_days field" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;i want this type of bucketing, i want fields like this using over_due_days field&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 10:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666680#M50212</guid>
      <dc:creator>Naresh1</dc:creator>
      <dc:date>2020-01-17T10:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: aging of buckets</title>
      <link>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666723#M50217</link>
      <description>&lt;P&gt;You can dynamically create the Buckets in you data with below approach. It will be easy for you to just update the Buckets in inline table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;let vBucketField = 'over_due_days'; // Define actual field name in your data on which you want to generate Bucket.eg. over_due_days

let vBucketColumnName = '[Over Due Bucket]'; // Provide the name you want to give for generated Bucket field.

Intervals:
Load Concat(chr(10)&amp;amp;BucketCondition,',')&amp;amp; Repeat(')',Count(Number))&amp;amp; ' as '&amp;amp;'$(vBucketColumnName)' as BucketFinal;
Load *,
     'if('&amp;amp;Start&amp;amp;if(Bucket like '*-*',' and ')&amp;amp;End&amp;amp;','&amp;amp;'dual('&amp;amp;chr(39)&amp;amp;Bucket&amp;amp;chr(39)&amp;amp;','&amp;amp;Number&amp;amp;')' as BucketCondition;
Load *,
     if(Bucket like '*-*','$(vBucketField)&amp;gt;='&amp;amp;SubField(Bucket,'-',1),'$(vBucketField)'&amp;amp;Bucket) as Start,
     if(Bucket like '*-*','$(vBucketField)&amp;lt;='&amp;amp;SubField(Bucket,'-',2),'') as End;
LOAD * inline [
Number,Bucket
1,0-15 
2,16-30 
3,31-60
4,61-120
5,121-180
6,&amp;gt;180 ];

Let vBucketCondition =Peek('BucketFinal',0,'Intervals');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now call the Variable in your actual data load which will create a Bucket field for you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;Data: 
Load *,
     $(vBucketCondition)
FROM YourData&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next step, Create a pivot table with Dimension &lt;STRONG&gt;Over_Due_Bucket&amp;nbsp;&lt;/STRONG&gt;and Expression &lt;STRONG&gt;Sum(Over_due_amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In pivot table, move&amp;nbsp;&lt;STRONG&gt;Over_Due_Bucket&amp;nbsp;&lt;/STRONG&gt;in Column so that You will get horizontal view of Bucket values&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 12:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/aging-of-buckets/m-p/1666723#M50217</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-17T12:31:00Z</dc:date>
    </item>
  </channel>
</rss>

