<?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: Data iteration problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616001#M684946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks basically like a GENERIC LOAD problem. See attached. It won't matter how many categories you have. However, if you have many more value columns, there may be a trick of folding the table down using CROSSTABLE followed by GENERIC. I'd have to think about it. But see if the attached gives you an idea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More on GENERIC LOAD in the Ref Guide and here. &lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewnotes.blogspot.com/2010/05/use-cases-for-generic-load.html" title="http://qlikviewnotes.blogspot.com/2010/05/use-cases-for-generic-load.html"&gt;http://qlikviewnotes.blogspot.com/2010/05/use-cases-for-generic-load.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Feb 2014 22:38:58 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2014-02-09T22:38:58Z</dc:date>
    <item>
      <title>Data iteration problem</title>
      <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/615998#M684943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached my .qvw file with the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to transform my source data fields in a certain way and I am pretty sure that I need an iteration function for that.&lt;/P&gt;&lt;P&gt;Please be aware, that this is only a very simple and abstract way of displaying my data - the real case includes several thousand of categories and Value-Fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the problem:&lt;/P&gt;&lt;P&gt;A,B,C are 3 different categories&lt;/P&gt;&lt;P&gt;The Value-fields contain null,0 or 1&lt;/P&gt;&lt;P&gt;Problem: the Value fields are not directly linked to the right category&lt;/P&gt;&lt;P&gt;They have a placeholders X and Y that could be A,B or C&lt;/P&gt;&lt;P&gt;The two fields X and Y provide the information if the value of Value_X and Value_Y belong either to A,B or C&lt;/P&gt;&lt;P&gt;As a result I need a Value-Field for each category:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="52701" alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/52701_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your time and help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 12:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/615998#M684943</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-02-06T12:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data iteration problem</title>
      <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/615999#M684944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generally your example worked with quite simply if-loops. If there are thousands (or too many for typing manually) of categories I suggest to load distinct all categories and create with variables a load-statement within in a loop in a stream-structure like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Categorie&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead to create a table with thousands of columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 0 to noofrows('DistinctCategories') - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vCategorie = peek('Categorie', $(i), 'DistinctCategories')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load-Statement ...&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 13:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/615999#M684944</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-02-06T13:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Data iteration problem</title>
      <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616000#M684945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, Marcus! &lt;/P&gt;&lt;P&gt;In this loop structure where you mention: 'Load-Statement' ...how would this load-statement look like? Does this mean I have to generate a single temporary table for each category and concatenate all of them in the end? &lt;/P&gt;&lt;P&gt;It would be great if you could give me a short example of this load statement.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 19:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616000#M684945</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-02-09T19:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data iteration problem</title>
      <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616001#M684946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks basically like a GENERIC LOAD problem. See attached. It won't matter how many categories you have. However, if you have many more value columns, there may be a trick of folding the table down using CROSSTABLE followed by GENERIC. I'd have to think about it. But see if the attached gives you an idea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More on GENERIC LOAD in the Ref Guide and here. &lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewnotes.blogspot.com/2010/05/use-cases-for-generic-load.html" title="http://qlikviewnotes.blogspot.com/2010/05/use-cases-for-generic-load.html"&gt;http://qlikviewnotes.blogspot.com/2010/05/use-cases-for-generic-load.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 22:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616001#M684946</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-09T22:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Data iteration problem</title>
      <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616002#M684947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Rob. I think using generic loads is a smart way but as I am not familiar in creating loops/iterations in QlikView, I don't figure out how to transform your example to my case where I have several fields providing the category and several fields with the value-information.&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 19:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616002#M684947</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-02-10T19:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Data iteration problem</title>
      <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616003#M684948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel, Please find the attached qvw and let me know in case of any concerns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 02:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616003#M684948</guid>
      <dc:creator />
      <dc:date>2014-02-11T02:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Data iteration problem</title>
      <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616004#M684949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Daniel, I forgot to attach the example! Here it is and it appears that Dathu has attached a similar example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 03:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616004#M684949</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-11T03:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data iteration problem</title>
      <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616005#M684950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Rob. Unfortunately your qvw attachment didnt include any script &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; but as you said before...Dathu gave a similar example which works fine for me.&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 13:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616005#M684950</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-02-11T13:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data iteration problem</title>
      <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616006#M684951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent, Dathu! With this example I learned a lot of using iterations...thank you so much!&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 13:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616006#M684951</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-02-11T13:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data iteration problem</title>
      <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616007#M684952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 13:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616007#M684952</guid>
      <dc:creator />
      <dc:date>2014-02-11T13:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Data iteration problem</title>
      <link>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616008#M684953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm batting zero on this one. I'm glad Dathu's example solved your issue. for the record, I've attached the correct example to my post. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 17:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-iteration-problem/m-p/616008#M684953</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-11T17:58:38Z</dc:date>
    </item>
  </channel>
</rss>

