<?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 Reordering table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148697#M26951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it work! Thanks a lot for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2009 21:04:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-08T21:04:11Z</dc:date>
    <item>
      <title>Reordering table</title>
      <link>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148692#M26946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm in trouble with the new format of a report that a telco sends us monthly. Formerly it used to be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;user1 info1&lt;BR /&gt;user1 info2&lt;BR /&gt;user1 info3&lt;BR /&gt;user2 info4&lt;BR /&gt;...&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now they changed the format as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;04 user1&lt;BR /&gt;05 info1&lt;BR /&gt;05 info2&lt;BR /&gt;06 info3&lt;BR /&gt;04 user2&lt;BR /&gt;05 info4&lt;BR /&gt;...&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I need to bind every detail row (marked by row header 05) to its header (marked by row header 04), but I can't make it. I'm not that good in QlikView, as you can guess...&lt;/P&gt;&lt;P&gt;Is there anyone who can help, please?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Luca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 21:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148692#M26946</guid>
      <dc:creator />
      <dc:date>2009-07-07T21:20:28Z</dc:date>
    </item>
    <item>
      <title>Reordering table</title>
      <link>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148693#M26947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luca,&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Load&lt;BR /&gt; If (Code='04', Value, Peek('User', -1)) As User,&lt;BR /&gt; if (Code='05', Value, Null()) As Info&lt;BR /&gt;;&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Code,Value&lt;BR /&gt;04,user1&lt;BR /&gt;05,info1&lt;BR /&gt;05,info2&lt;BR /&gt;06,info3&lt;BR /&gt;04,user2&lt;BR /&gt;05,info4&lt;BR /&gt;]&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 22:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148693#M26947</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-07-07T22:06:39Z</dc:date>
    </item>
    <item>
      <title>Reordering table</title>
      <link>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148694#M26948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think a simple peek() function (in this case previous() will also work) will do the trick.&lt;/P&gt;&lt;P&gt;Here is sample script code based on your example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;T1:&lt;BR /&gt;Load&lt;BR /&gt; If(RecType='04',Value,peek(User)) as User, // IF NOT RECTYPE=04 THEN USE PREVIOUS RECORD'S VALUE&lt;BR /&gt; If(RecType='05',Value) as Info_Value; // ONLY STORE RECTYPE=05 VALUES&lt;BR /&gt;Load * Inline [&lt;BR /&gt;RecType,Value&lt;BR /&gt;04, user1&lt;BR /&gt;05, info1&lt;BR /&gt;05, info2&lt;BR /&gt;06, info3&lt;BR /&gt;04, user2&lt;BR /&gt;05, info4];&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 22:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148694#M26948</guid>
      <dc:creator />
      <dc:date>2009-07-07T22:22:30Z</dc:date>
    </item>
    <item>
      <title>Reordering table</title>
      <link>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148695#M26949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PJB,&lt;/P&gt;&lt;P&gt;Just note that your peek is missing the single quotes (that one has often got me banging my head against a wall!).&lt;/P&gt;&lt;P&gt;In this case, Previous will not work because the value will not always be populated in the source data. The Peek makes sure that it will be populated because we have populated it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 22:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148695#M26949</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-07-07T22:30:30Z</dc:date>
    </item>
    <item>
      <title>Reordering table</title>
      <link>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148696#M26950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Stephen and pjb, for your help! I think you put me on the right way to the solution: I'm working for the details, then I'll mark the question as solved. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 20:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148696#M26950</guid>
      <dc:creator />
      <dc:date>2009-07-08T20:54:24Z</dc:date>
    </item>
    <item>
      <title>Reordering table</title>
      <link>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148697#M26951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it work! Thanks a lot for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 21:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reordering-table/m-p/148697#M26951</guid>
      <dc:creator />
      <dc:date>2009-07-08T21:04:11Z</dc:date>
    </item>
  </channel>
</rss>

