<?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: How to create  pair in data using script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-pair-in-data-using-script/m-p/1603457#M444517</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load * , if( Peek(ID)&amp;lt;&amp;gt;ID ,1,peek(rows)+1) as rows , RowNo() as row &amp;nbsp;inline [&lt;/P&gt;&lt;P&gt;ID&lt;BR /&gt;a&lt;BR /&gt;a&lt;BR /&gt;a&lt;BR /&gt;a&lt;BR /&gt;a&lt;BR /&gt;b&lt;BR /&gt;c&lt;BR /&gt;c&lt;BR /&gt;d&lt;BR /&gt;d&lt;BR /&gt;d&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;f&lt;BR /&gt;f&lt;BR /&gt;f&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;ID,&lt;BR /&gt;rows,&lt;BR /&gt;row,&lt;BR /&gt;if(row=1 or Peek(ID)&amp;lt;&amp;gt;ID ,1 ,&lt;BR /&gt;if( Peek(ID)=ID and odd(rows)='-1', Peek(new)+1 , Peek(new) )) as new&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Resident Temp&lt;BR /&gt;Order by row&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 05:41:13 GMT</pubDate>
    <dc:creator>qliksus</dc:creator>
    <dc:date>2019-07-18T05:41:13Z</dc:date>
    <item>
      <title>How to create  pair in data using script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-pair-in-data-using-script/m-p/1593144#M443688</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to create pairs of values in data. I have a fied ID and i want to know how to get field Pair:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;ID,Pair&lt;/STRONG&gt;&lt;BR /&gt;a,1&lt;BR /&gt;a,1&lt;BR /&gt;a,2&lt;BR /&gt;a,2&lt;BR /&gt;a,3&lt;BR /&gt;b,1&lt;BR /&gt;c,1&lt;BR /&gt;c,1&lt;BR /&gt;d,1&lt;BR /&gt;d,1&lt;BR /&gt;d,2&lt;BR /&gt;e,1&lt;BR /&gt;e,1&lt;BR /&gt;e,2&lt;BR /&gt;e,2&lt;BR /&gt;e,3&lt;BR /&gt;e,3&lt;BR /&gt;e,4&lt;BR /&gt;f,1&lt;BR /&gt;f,1&lt;BR /&gt;f,2&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;That is, the 2 first occurences of a value with 1, the 3rd &amp;amp; 4rd, 2, and so on.&lt;/P&gt;&lt;P&gt;It has to be done in script so that I get the table above&lt;/P&gt;&lt;P&gt;Thanks a lot in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-pair-in-data-using-script/m-p/1593144#M443688</guid>
      <dc:creator>Pedro_Rodriguez</dc:creator>
      <dc:date>2024-11-16T20:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create  pair in data using script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-pair-in-data-using-script/m-p/1603371#M444512</link>
      <description>&lt;P&gt;Best I have for you is a link to the Design Blog area to see if you can find something there that may help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There are hundreds of posts on things there, so you may have to try different things to find something that may help here if you are still working on things.&amp;nbsp; Sorry I do not have something better for you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 19:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-pair-in-data-using-script/m-p/1603371#M444512</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-07-17T19:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create  pair in data using script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-pair-in-data-using-script/m-p/1603457#M444517</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load * , if( Peek(ID)&amp;lt;&amp;gt;ID ,1,peek(rows)+1) as rows , RowNo() as row &amp;nbsp;inline [&lt;/P&gt;&lt;P&gt;ID&lt;BR /&gt;a&lt;BR /&gt;a&lt;BR /&gt;a&lt;BR /&gt;a&lt;BR /&gt;a&lt;BR /&gt;b&lt;BR /&gt;c&lt;BR /&gt;c&lt;BR /&gt;d&lt;BR /&gt;d&lt;BR /&gt;d&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;e&lt;BR /&gt;f&lt;BR /&gt;f&lt;BR /&gt;f&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;ID,&lt;BR /&gt;rows,&lt;BR /&gt;row,&lt;BR /&gt;if(row=1 or Peek(ID)&amp;lt;&amp;gt;ID ,1 ,&lt;BR /&gt;if( Peek(ID)=ID and odd(rows)='-1', Peek(new)+1 , Peek(new) )) as new&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Resident Temp&lt;BR /&gt;Order by row&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 05:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-pair-in-data-using-script/m-p/1603457#M444517</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2019-07-18T05:41:13Z</dc:date>
    </item>
  </channel>
</rss>

