<?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: cycle through all records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315042#M116236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi... thanks again for you help, but I think peek is a load script function, not one that can be used in the macros.&amp;nbsp; I haven't had much luck interchanging the two types of functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2011 20:29:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-19T20:29:37Z</dc:date>
    <item>
      <title>cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315036#M116230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to cycle through each record, select two fields and perform some checks on those values, bin appropriately and then go to the next record until the end of the full set.&amp;nbsp; How would I do this in a macro?&amp;nbsp;&amp;nbsp; I currently have it picking up all the unique identifiers, and getting a count.&amp;nbsp; but after that I could figure out how to get it to select the two fields that I need that are associated with the unique identifier.&amp;nbsp; If I was able to pick up the fields associated with a single unique id, how would I then return back to the full list to go onto the next id?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;P&gt;Therese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 18:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315036#M116230</guid>
      <dc:creator />
      <dc:date>2011-05-19T18:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315037#M116231</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;already tried the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i = 0 to NoOfRows('&lt;STRONG&gt;FieldID&lt;/STRONG&gt;')-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //Your operations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 18:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315037#M116231</guid>
      <dc:creator>yasus</dc:creator>
      <dc:date>2011-05-19T18:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315038#M116232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks, Gregor, but it's the "Your operations" part that i need help with.&amp;nbsp; If i have it select all possible IDs to be able to use something like ID.item(i).text, I run into problems with picking up the two other fields that are associate with a particular ID.&amp;nbsp; Example, I have the following fields: ID, lower, and upper; lower and upper are not unique fields.&amp;nbsp; for each ID I need to check the lower and upper fields.&amp;nbsp; How do I get the values that are in lower and upper based on the ID that I am currently working with?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 19:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315038#M116232</guid>
      <dc:creator />
      <dc:date>2011-05-19T19:03:48Z</dc:date>
    </item>
    <item>
      <title>cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315039#M116233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How much data are we talking about here and could you please describe the operations more thoroughly. A "for" loop will get the job done but it is terribly slow and there is probably a better way to approach it with load statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 19:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315039#M116233</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2011-05-19T19:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315040#M116234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Approximately 400k records that will need to be checked.&amp;nbsp; It can't be done on load because what I am checking the upper and lower against are vaiarbles that the user can change at any time to collect a different set of data.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 19:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315040#M116234</guid>
      <dc:creator />
      <dc:date>2011-05-19T19:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315041#M116235</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 need the peek-function in order to get access to a single value of a field with an unique ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the expample with reference to your specifications: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;FOR i = 0 to NoOfRows('ID')-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET&amp;nbsp; UpperValue = peek('upper', i, 'TableName');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET&amp;nbsp; LowerValue = peek('lower', i, 'TableName');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF UpperValue = LowerValue THEN //..or whatever &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Operation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 19:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315041#M116235</guid>
      <dc:creator>yasus</dc:creator>
      <dc:date>2011-05-19T19:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315042#M116236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi... thanks again for you help, but I think peek is a load script function, not one that can be used in the macros.&amp;nbsp; I haven't had much luck interchanging the two types of functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 20:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315042#M116236</guid>
      <dc:creator />
      <dc:date>2011-05-19T20:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315043#M116237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Therese,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you provide us a sample application with a concrete description of the desired result, because I have completly no clue which purpose you are targeting. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 20:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315043#M116237</guid>
      <dc:creator>yasus</dc:creator>
      <dc:date>2011-05-19T20:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315044#M116238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using a combination of GetPossibleValues and Select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;set val=ActiveDocument.Fields("ID").GetPossibleValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to val.Count-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set Xvalue = val.Item(i).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields("ID").Select XValue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set val2 = ActiveDocument.Fields("OtherField").GetPossibleValues&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for a=0 to val.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set Yvalue = val.Item(a).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields("OtherField").Select YValue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' more stuff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 22:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315044#M116238</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2011-05-19T22:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315045#M116239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, and don't forget to Clear the Macro selections when during the routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;ActiveDocument.Fields("ID").Clear&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 23:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315045#M116239</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2011-05-19T23:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315046#M116240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try to describe what you are trying to accomplish in terms of the output and the data. If you are going to loop through 400K rows I think you are going to be waiting quite a long time between each click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 00:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315046#M116240</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2011-05-20T00:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: cycle through all records</title>
      <link>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315047#M116241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Miguel...&amp;nbsp; that was close enough to get me the rest of the way. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 15:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/cycle-through-all-records/m-p/315047#M116241</guid>
      <dc:creator />
      <dc:date>2011-05-24T15:45:14Z</dc:date>
    </item>
  </channel>
</rss>

