<?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 Handling Arrays in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575794#M1113783</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;is it possible in Qlikview to build arrays or array-like structures? I want to compare some values form a table and if they meet certain criteria, I want to store this values. So an array was the first thing that I thought of. I will use it in an iterative process, so I am looking for something, where I can store values repeadedly, without just overwriting it.&lt;/P&gt;&lt;P&gt;And after creating such an array, how can i write it´s values into a table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 07:16:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-27T07:16:08Z</dc:date>
    <item>
      <title>Handling Arrays</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575794#M1113783</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;is it possible in Qlikview to build arrays or array-like structures? I want to compare some values form a table and if they meet certain criteria, I want to store this values. So an array was the first thing that I thought of. I will use it in an iterative process, so I am looking for something, where I can store values repeadedly, without just overwriting it.&lt;/P&gt;&lt;P&gt;And after creating such an array, how can i write it´s values into a table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575794#M1113783</guid>
      <dc:creator />
      <dc:date>2014-02-27T07:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Arrays</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575795#M1113784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;using macro it's possible to do &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;try like this &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;Sub &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Test&lt;/SPAN&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;&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;strOfNames = """Name 1"",""Name 2"",""Name 3"""&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; msgbox &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;strOfNames &lt;/SPAN&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;&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;End Sub&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575795#M1113784</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-02-27T07:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Arrays</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575796#M1113785</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;Transform your logic into the terms of tables (Map + Reduce logic for example).&lt;/P&gt;&lt;P&gt;You can use Autogenerate() + concatenate statements to add the rows one by one.&lt;/P&gt;&lt;P&gt;Then you can use mapping with ApplyMap/lookup and group by.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 07:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575796#M1113785</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-02-27T07:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Arrays</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575797#M1113786</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;Not sure why you want to do this, but assuming that you have a valid reason, here goes. To create the array variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let aListLength = NoOfRows('myTable');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For zi = 0 To aListLength&amp;nbsp; - 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; Let aList$(zi) = Peek('myField', zi, 'myTable');&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;This builds variables:&amp;nbsp;&amp;nbsp;&amp;nbsp; aList1, aList2, ... aListn from mField in myTable.&lt;/P&gt;&lt;P&gt;To load into table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For zi = 0 To aListLength&amp;nbsp; - 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; LOAD '$(aList$(zi))' As newField&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AUTOGENERATE 1;&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;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 08:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575797#M1113786</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-02-27T08:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Arrays</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575798#M1113787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m doing this for the following reason:&lt;/P&gt;&lt;P&gt;I have a scenario, where I need to extract a certain timespan from a list of timestamps. I need to compare 2 timestamps, if the difference between this 2 is smaller than a certain amount of time I need to safe the first stamp and go on to compare the next stamps. &lt;/P&gt;&lt;P&gt;If the condition is not matched I will just go on to the next stamp and create a new list where I store the stamps that match my condition and so on. In the end I will (hopefuly) have a number of lists that i can store into tables to do further evaluation with it.&lt;/P&gt;&lt;P&gt;The array would help me to store the extracted timestamps that match my condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlik, so I thought of the solutions I would use when working with a regular coding language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I could make clear what I am trying to achive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 08:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575798#M1113787</guid>
      <dc:creator />
      <dc:date>2014-02-27T08:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Arrays</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575799#M1113788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would expect that a data based solution (using LOADs and Resident LOADs) would perform far better than moving the data into variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't fully understand your requirements, but I am confident that it can be done in script. To clarify:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I assume the timestamps are coming from a field in your source data&lt;/LI&gt;&lt;LI&gt;Is there some sort of ID or key field to identify which timestamps are which?&lt;/LI&gt;&lt;LI&gt;Starting with the earliest timestamp, you need all the consecutive timestamps within a certain period from the earliest - is that correct?&lt;/LI&gt;&lt;LI&gt;Please explain in more details the 'next list'. Does this start with timestamp 2, or the first timestamp not in the first list?&lt;/LI&gt;&lt;LI&gt;The output will depend on what sort of further processing you need to do. So you might want to explain that as well.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 09:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575799#M1113788</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-02-27T09:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Arrays</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575800#M1113789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The company I´m doing this for wants to measure certain picks/timeframe.&lt;/P&gt;&lt;P&gt;I have:&lt;/P&gt;&lt;P&gt;- timestamps (when the pick happened) &lt;/P&gt;&lt;P&gt;- employee (who picked)&lt;/P&gt;&lt;P&gt;- key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above are coming form a SQL Database, there is a key to identify each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need each timestamp in comparison to its proccessor.&lt;/P&gt;&lt;P&gt;The reason is the following:&lt;/P&gt;&lt;P&gt;The people who pick do different stuff then just picking. The company wants to identify the timeframe in that a picker was "actively" picking. Then for this Timeframe they want to measure the amount of picks/timeframe.&lt;/P&gt;&lt;P&gt;So if two consecutive picks are more then 5 nminutes apart this means the picker is doing other things not picking anymore. This means the timeframe is not relevant for the evaluation.&lt;/P&gt;&lt;P&gt;So each timestamp is just in relation to its following stamp. If two stamps are within 5 minutes the picker was actively picking. I always analyze pairs of stamps (stamp 1&amp;amp;2 ,2&amp;amp;3, 3&amp;amp;4, 4&amp;amp;5...). This goes on, until two stamps are further apart then 5 minutes. The result is an amount of timestamps, where each stamp is within 5 minutes of its following stamp. I now can say: In a span of xx minutes (first stamp, to last stamp) happend YY (the number of timestamps I collected).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might ask now: Why dont you just compare all picks to the whole period of time and get picks/day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because, the company wants to evaluate the picks per hour in an "active" picking phase. So that the whole time where the did other things except picking is not evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your kind reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 10:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575800#M1113789</guid>
      <dc:creator />
      <dc:date>2014-02-27T10:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Arrays</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575801#M1113790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a Version I created and it looks like it´s working.&lt;/P&gt;&lt;P&gt;The Main Problem I am attacking with this is, that there are no Arrays in Qlikview and I needed to find a Way to safe a Value for further Processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is what I came up with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-02-27_15h55_14.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/53967_2014-02-27_15h55_14.jpg" style="width: 620px; height: 259px;" /&gt;&lt;/P&gt;&lt;P&gt;Before I started, I sorted the Table with a LOAD and order by, so that all the Timestamps were sorted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what this does is basicaly, to extract my desired Values from a table, match them against a condition ( in my case timestamps that were less then 5 minutes apart) and safe them in a variable to store them into a new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope other people having similar problems will find this helpful. Feel free to ask any Questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;BR /&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 15:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-Arrays/m-p/575801#M1113790</guid>
      <dc:creator />
      <dc:date>2014-02-27T15:00:05Z</dc:date>
    </item>
  </channel>
</rss>

