<?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 for each in unique file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/for-each-in-unique-file/m-p/547696#M689803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm making an script that has a "for each " to stay more fast, because the script has a function call hierarchy, the "for each" is for any customer , the problem is when&amp;nbsp; I do store of file, I record only the data of the first customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow below the part of the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Each a in 3,2,5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;orders:&lt;/P&gt;&lt;P&gt;Hierarchy (order,order_father,level_order,,level_order,,treeview)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer &amp;amp;'-'&amp;amp; order &amp;amp;'-'&amp;amp; product&amp;nbsp; as order ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer &amp;amp;'-'&amp;amp;order_father &amp;amp;'-'&amp;amp; product as order_father &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer &amp;amp;'-'&amp;amp; order &amp;amp;'-'&amp;amp; product&amp;nbsp; as order_level ,&lt;/P&gt;&lt;P&gt;Where customer = $(a);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store orders INTO ..\mylocal\file.qvd&lt;/P&gt;&lt;P&gt;DROP TABLE orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//finish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the script above is a little part of the scritp that I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that, when I look the qvd, just customer 3 shows, if I to put "For Each a in 5,3,2", the customer that going&amp;nbsp; to show is 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;somebody have some idea ?, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2013 21:48:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-19T21:48:02Z</dc:date>
    <item>
      <title>for each in unique file</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-in-unique-file/m-p/547696#M689803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm making an script that has a "for each " to stay more fast, because the script has a function call hierarchy, the "for each" is for any customer , the problem is when&amp;nbsp; I do store of file, I record only the data of the first customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow below the part of the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Each a in 3,2,5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;orders:&lt;/P&gt;&lt;P&gt;Hierarchy (order,order_father,level_order,,level_order,,treeview)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer &amp;amp;'-'&amp;amp; order &amp;amp;'-'&amp;amp; product&amp;nbsp; as order ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer &amp;amp;'-'&amp;amp;order_father &amp;amp;'-'&amp;amp; product as order_father &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer &amp;amp;'-'&amp;amp; order &amp;amp;'-'&amp;amp; product&amp;nbsp; as order_level ,&lt;/P&gt;&lt;P&gt;Where customer = $(a);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store orders INTO ..\mylocal\file.qvd&lt;/P&gt;&lt;P&gt;DROP TABLE orders;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//finish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the script above is a little part of the scritp that I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that, when I look the qvd, just customer 3 shows, if I to put "For Each a in 5,3,2", the customer that going&amp;nbsp; to show is 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;somebody have some idea ?, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 21:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-in-unique-file/m-p/547696#M689803</guid>
      <dc:creator />
      <dc:date>2013-11-19T21:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: for each in unique file</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-in-unique-file/m-p/547697#M689804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are using For .. Each loop here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can directly use Match function here like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;orders:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hierarchy (order,order_father,level_order,,level_order,,treeview)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer &amp;amp;'-'&amp;amp; order &amp;amp;'-'&amp;amp; product&amp;nbsp; as order ,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer &amp;amp;'-'&amp;amp;order_father &amp;amp;'-'&amp;amp; product as order_father&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer &amp;amp;'-'&amp;amp; order &amp;amp;'-'&amp;amp; product&amp;nbsp; as order_level ,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Match(customer,2,3,5);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Store orders INTO ..\mylocal\file.qvd&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP TABLE orders;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;While using the Hierarchy, the filed names created like Order1, Order2 somthing like&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please check the each inividual load inside for loop and check auto concatenate is working or not ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 21:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-in-unique-file/m-p/547697#M689804</guid>
      <dc:creator />
      <dc:date>2013-11-19T21:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: for each in unique file</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-in-unique-file/m-p/547698#M689805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey !&lt;BR /&gt;thank very much, I don't knew of this Match command, thanks a lot, was very fast, my problem was resolved !&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;answer your question&amp;nbsp; "if&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;loop and check auto concatenate is working or not?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I put "Concatenate" explict, I think that is workink, but &lt;/SPAN&gt;I'll to invistigate the script with loop just for curiosity, and to post the result here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 00:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-in-unique-file/m-p/547698#M689805</guid>
      <dc:creator />
      <dc:date>2013-11-20T00:16:48Z</dc:date>
    </item>
  </channel>
</rss>

