<?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: Difficult issue in a loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813717#M663348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a sample would help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2015 14:12:18 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2015-02-16T14:12:18Z</dc:date>
    <item>
      <title>Difficult issue in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813716#M663347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following issue:&lt;/P&gt;&lt;P&gt;- In my underlying Excel_file, the last column that is currently populated is AG (or 33) (that is like a counter, the total of operating hrs&lt;BR /&gt;&amp;nbsp; as it was in January - the data of February will be available in the first days of March)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;=&amp;gt; Then, one column will be added next to AG (so the new one will be 34)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ... and so on every month from now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; =&amp;gt; so the last column to be added in the first days of December will be 43 (the December data will be in next year's list)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; I have a loop running from a counter of 34 to 43, parsing the columns for a keyword to identify whether or not it is a data_field and&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - if it is, it is loaded with an alias_name following a specified naming_format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - if it is not (example), it is loaded with the value 'dummy_35' and the alias_name 'dummy_35'.&lt;/P&gt;&lt;P&gt;=&amp;gt; All of those fields are included in the LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Then I have another loop running from a counter of 10 to 20 (on the table just loaded because what used to be column 34 is now column 10, but still called like 'dummy_34')&lt;/P&gt;&lt;P&gt;=&amp;gt; If one of those fields starts with 'dummy', a DROP FIELD statement is constructed in a variable using the Fieldname() function on that table (always adding 24 to the counter to get the correct field_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing is: That loop runs without issues up to the counter of 15 (or 39) - the last fields, although the syntax is exactly the same (those fields are all created in the first loop) are ignored: The IF_function is just skipped as I can see in the Debugger and the commands within that IF_THEN_loop are not executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me what might be the difference that I cannot see there?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 14:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813716#M663347</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-02-16T14:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Difficult issue in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813717#M663348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a sample would help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 14:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813717#M663348</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-02-16T14:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difficult issue in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813718#M663349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ioannis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it would. The thing is just that assembling a sample_file takes a lot of time.&lt;/P&gt;&lt;P&gt;In the meantime, however, I have had an idea myself:&lt;/P&gt;&lt;P&gt;- I have the variable_call (that is, a DROP FIELD statement) WITHIN my loop&lt;BR /&gt;=&amp;gt; that means that the table is, from one loop_iteration to the next, collapsed like a telescope&lt;/P&gt;&lt;P&gt;=&amp;gt; By the time the counter reaches 16, the remaining 5 dummy_fields are on the positions 11-15, so the field nr. 16,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counting from the left, does not begin with 'dummy' anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; I have to find some way of moving the DROP FIELD statements out of the loop or something ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 14:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813718#M663349</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-02-16T14:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Difficult issue in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813719#M663350</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;This sounds like it could be solved with a cross table load with a wildcard LOAD * to accommodate a varying number of fields. I am not sure from your explanation exactly what it would look like, so I will wait until you can provide that sample if you need more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 14:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813719#M663350</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-02-16T14:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Difficult issue in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813720#M663351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the issue is solved.&lt;/P&gt;&lt;P&gt;There is just no way of marking a thread as solved unless you mark some answer as "right" - which would be nice, but not correct if you have in the end solved the issue yourself ...&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 15:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813720#M663351</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-02-16T15:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Difficult issue in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813721#M663352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark your answer as correct &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;it is possible, you just don't get any points for it (obviously &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 15:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813721#M663352</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-02-16T15:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Difficult issue in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813722#M663353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I don't?&lt;/P&gt;&lt;P&gt;That is just what I was not sure of - I wouldn't like to award myself points for getting through some issue, that's why I never marked such threads as solved up to now. But if the system is clever enough to not give me points in that case, I will do so. Thank you!&lt;/P&gt;&lt;P&gt;Hmm ... should I now do as you say or award you the points for telling me &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 15:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813722#M663353</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-02-16T15:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Difficult issue in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813723#M663354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; you did well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 15:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difficult-issue-in-a-loop/m-p/813723#M663354</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-02-16T15:13:00Z</dc:date>
    </item>
  </channel>
</rss>

