<?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: Divide number of records in list box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440969#M164391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to apply your solution in one of my other report but its not working. I am not sure about how you set the variable in the actions for Next Page and Previous Page. I think that piece is causing the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 18:45:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-15T18:45:07Z</dc:date>
    <item>
      <title>Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440958#M164380</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 am not sure if it is a right way to ask this question or not but I am just wondering if there is a way to divide the records of a field in various parts and create some buttons to show First 1 Million records, Second 1 Million records and Show All for example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field IP Address and I have more than 6 million records in that. If I leave to lead and process all 6 million records then it is taking too long. What I want is to divide 6 million in 6 parts one million each and then create buttons to show First 1 million, Second Million and so on. One button for to show all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 16:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440958#M164380</guid>
      <dc:creator />
      <dc:date>2012-09-25T16:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440959#M164381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;The easiest and the fastest way is to add a field 'Group' (or million) in your script for each IP Address (into the same table).&lt;/P&gt;&lt;P&gt;Then you can use it in the listbox for selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 19:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440959#M164381</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-25T19:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440960#M164382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry whiteline, I did not get what you are saying. Can you please explain it it a bit detail?&lt;/P&gt;&lt;P&gt;I have attached a sample file with few sample IPs. Can you update this qvw?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make Group for every 100 IPs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 02:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440960#M164382</guid>
      <dc:creator />
      <dc:date>2012-09-26T02:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440961#M164383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add another field with expresison like this (for every 100):&lt;/P&gt;&lt;P&gt;div(rowno(), 100)&amp;nbsp; as Group&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 05:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440961#M164383</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-26T05:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440962#M164384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry I did not get it. I have created one new field with "=Div(RowNo(),100)" and the value of this field is displayed as 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 02:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440962#M164384</guid>
      <dc:creator />
      <dc:date>2012-09-27T02:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440963#M164385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached file for solution, hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 05:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440963#M164385</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-09-27T05:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440964#M164386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD [IP Address],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [1WK],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [9WKS],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [07WKS],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;div(rowno(), 100)&amp;nbsp; as Group&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 06:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440964#M164386</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-27T06:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440965#M164387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whiteline.... (Is your name by the way:-)),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer is certainly helpful. But Infact I have 3 tables which have IP address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PV_1LW (has 1.6 million IPs)&lt;/P&gt;&lt;P&gt;PV_4LWS&amp;nbsp; (has 2.5 million IPs) and&lt;/P&gt;&lt;P&gt;PV_52LWS (has 10.1 million IPs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I make a general IP Groups based on IPs from all these three tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Is there a way to find out which IPs belongs to which group?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advacne.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 15:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440965#M164387</guid>
      <dc:creator />
      <dc:date>2012-09-27T15:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440966#M164388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should choose how&amp;nbsp; assign the groups to your IPs.&lt;/P&gt;&lt;P&gt;I suggested the row number in the table as a simliest way, as you only said that you have too much data to process simultaneously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are plenty of logical ways to split it to groups. For example, classify the first number in IP address:&lt;/P&gt;&lt;P&gt;div(num#(subfield(IPAddressString, '.', 1)), &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for three tables, if they are separate and have different meaning, you have to create groups separately for each one (but of course &lt;SPAN style="text-decoration: underline;"&gt;you can use the same logic&lt;/SPAN&gt; to group them).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 18:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440966#M164388</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-27T18:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440967#M164389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is very helpful and I think I am very near to my required answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When I used the first method you mentioned to create groups "&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;div(rowno(), 100)&amp;nbsp; as Group&lt;/STRONG&gt;". I divided with 1000000 instead of 100 and it created 7 groups, starting from 0,1,....6. I have two questions here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The number of IPs in each group were not exactly equal to 1000000 (should it be one million records in each group)?&lt;/P&gt;&lt;P&gt;2. Groups started from 0. Why it started from 0 and how can I avoid that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I used second method "&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;div(num#(subfield(IPAddressString, '.', 1)), &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/SPAN&gt;" it showed me 30 numbers (groups). How these are created and differnt IPs are assigned to different groups?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used field [IP Address] at "IPAddressString".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or simply can you please expalin second syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be higly greatful for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 20:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440967#M164389</guid>
      <dc:creator />
      <dc:date>2012-09-27T20:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440968#M164390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I explain you both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;div(rowno(), 100)&amp;nbsp; as Group&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1) rowno() - gives the number of row in the loading table (the original order as it was in input file).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; div() - returns the integer part of the result of the arithmetic division.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; so for rows 0-99 the above expression returns '0', for 100-199 - '1', and so on.&lt;/P&gt;&lt;P&gt;Obviously, you can add +1 after div() to start group name from 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;div(num#(subfield(IPAddressString, '.', 1)), &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; subfield([IP Address], '.', 1) - returns the part of string with first number of IP address (0-255).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num#() - converts the string to number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; div() - look above.&lt;/P&gt;&lt;P&gt;Obviously, you should get about ~30 groups (=256/8) with group names depending on the first number of IP address. The group name here is just the first number of IP address divided by 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So first - groups IPs just by row number in an original file, second - by first number of IP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 20:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440968#M164390</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-27T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Divide number of records in list box</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440969#M164391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to apply your solution in one of my other report but its not working. I am not sure about how you set the variable in the actions for Next Page and Previous Page. I think that piece is causing the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 18:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-number-of-records-in-list-box/m-p/440969#M164391</guid>
      <dc:creator />
      <dc:date>2012-10-15T18:45:07Z</dc:date>
    </item>
  </channel>
</rss>

