<?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: Best Way to Breakout Balance Field Incrementally in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1724965#M592087</link>
    <description>&lt;P&gt;With Class:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD *,
     Dual(Replace(Class(ACCT_BALANCE,100),'&amp;lt;= x &amp;lt;','-'),Class(ACCT_BALANCE,100)) as BalanceRange;
LOAD Ceil(Rand()*1000) As ACCT_BALANCE
AutoGenerate 25;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV23.PNG" style="width: 181px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36929i5E056D454F6187B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV23.PNG" alt="commQV23.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jul 2020 02:31:41 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2020-07-04T02:31:41Z</dc:date>
    <item>
      <title>Best Way to Breakout Balance Field Incrementally</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1724181#M592085</link>
      <description>&lt;P&gt;I was just curious, as it comes up a lot, but is there an easier way to create a balance range than the script below? We also use an input box version where to enter the range you want, but then if we end up with too many calculated dimensions in a report using that input box, it really affects the performance of the report.&amp;nbsp; So, is there an easier function to take something like a balance and just say break it out in $100 increments as a new field? Look forward to hearing how others tackle this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(ACCT_BALANCE&amp;lt;=200,'&amp;lt;200',&lt;BR /&gt;IF(ACCT_BALANCE&amp;gt;=200 AND ACCT_BALANCE&amp;lt;=400,'200-400',&lt;BR /&gt;IF(ACCT_BALANCE&amp;gt;400 AND ACCT_BALANCE&amp;lt;=600,'400-600',&lt;BR /&gt;IF(ACCT_BALANCE&amp;gt;600 AND ACCT_BALANCE&amp;lt;=800,'600-800',&lt;BR /&gt;IF(ACCT_BALANCE&amp;gt;800 AND ACCT_BALANCE&amp;lt;=1000,'800-1000',&lt;BR /&gt;IF(ACCT_BALANCE&amp;gt;1000 AND ACCT_BALANCE&amp;lt;=1500,'1000-1500',&lt;BR /&gt;IF(ACCT_BALANCE&amp;gt;1500,'1500+'&lt;BR /&gt;))))))) AS BalanceRange&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1724181#M592085</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2024-11-16T18:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Breakout Balance Field Incrementally</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1724235#M592086</link>
      <description>&lt;P&gt;Check the&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/ConditionalFunctions/class.htm" target="_self"&gt;Class&lt;/A&gt;&amp;nbsp;function.&amp;nbsp; You can use a replace statement to change the "&amp;lt;= x &amp;lt;" to just a dash.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 20:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1724235#M592086</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-07-01T20:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Breakout Balance Field Incrementally</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1724965#M592087</link>
      <description>&lt;P&gt;With Class:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD *,
     Dual(Replace(Class(ACCT_BALANCE,100),'&amp;lt;= x &amp;lt;','-'),Class(ACCT_BALANCE,100)) as BalanceRange;
LOAD Ceil(Rand()*1000) As ACCT_BALANCE
AutoGenerate 25;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV23.PNG" style="width: 181px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36929i5E056D454F6187B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV23.PNG" alt="commQV23.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jul 2020 02:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1724965#M592087</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-07-04T02:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Breakout Balance Field Incrementally</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1725015#M592088</link>
      <description>&lt;P&gt;If you have fixed interval for buckets then you can use class function. See below link for the same&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/ConditionalFunctions/class.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/ConditionalFunctions/class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you want to create custom bucket interval then use below method&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Data:
Load * Inline [
ACCT_BALANCE
100
150
210
350
430
550
630
750
810
990
1100
1302
1400
1600
1700 ];

Buckets:
load * inline [
From,To,Bucket
0,200,&amp;lt;200
200,400,200-400
401,600,400-600
601,800,600-800
801,1000,800-1000
1001,1500,1000-1500
1501,E99,&amp;gt;1500 ];

Left Join(Buckets)
IntervalMatch(ACCT_BALANCE)
Load From,To 
Resident Buckets;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 04 Jul 2020 12:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1725015#M592088</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-04T12:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Breakout Balance Field Incrementally</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1725053#M592091</link>
      <description>&lt;P&gt;My code above, wont handle 1500+. Please check the below.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD *, If(ACCT_BALANCE&amp;gt;=1500, Dual('1500+',ACCT_BALANCE),
     Dual(Replace(Class(ACCT_BALANCE,100),'&amp;lt;= x &amp;lt;','-'),Class(ACCT_BALANCE,100))) as BalanceRange;
LOAD Ceil(Rand()*2000) As ACCT_BALANCE
AutoGenerate 25;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV24.PNG" style="width: 178px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36949i56CEE1C0BF3D9ED2/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV24.PNG" alt="commQV24.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jul 2020 16:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1725053#M592091</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-07-04T16:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Breakout Balance Field Incrementally</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1727738#M592098</link>
      <description>&lt;P&gt;This looks very interesting, never seen this function layout. I am going to try it out and get back to you. Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 15:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1727738#M592098</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2020-07-14T15:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Breakout Balance Field Incrementally</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1730723#M592099</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38047i479386A627881FF2/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/894"&gt;@Saravanan_Desingh&lt;/a&gt;&amp;nbsp;So I like this and it seems to be a great solution to my previous method. The only problem is that the set cap of 5000+ that I put in shows up for each record instead of grouping them when I add it as a selectable field. (See image).&lt;/P&gt;&lt;P&gt;All other records fall under the numeric ranges, but each one set as 5000+ shows individually.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 17:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1730723#M592099</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2020-07-24T17:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Breakout Balance Field Incrementally</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1734234#M592101</link>
      <description>&lt;P&gt;I had to remove the 5000+ section because it broke them all out individually instead of into a 5000+ bucket. But, doing it this way yout WILL get the entire breakout by whichever breakout you set... for example increments of 100&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 18:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1734234#M592101</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2020-08-07T18:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Breakout Balance Field Incrementally</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1734241#M592104</link>
      <description>&lt;P&gt;Can you try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD *, If(ACCT_BALANCE&amp;gt;=1500, Dual('1500+',Class(ACCT_BALANCE,1500)),
     Dual(Replace(Class(ACCT_BALANCE,100),'&amp;lt;= x &amp;lt;','-'),Class(ACCT_BALANCE,100))) as BalanceRange;
LOAD Ceil(Rand()*2000) As ACCT_BALANCE
AutoGenerate 25;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 07 Aug 2020 19:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Breakout-Balance-Field-Incrementally/m-p/1734241#M592104</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-08-07T19:01:34Z</dc:date>
    </item>
  </channel>
</rss>

