<?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: Reverse Row Value for ID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reverse-Row-Value-for-ID/m-p/1751643#M719123</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Taoufiq ZARRA,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for the Solution. It worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2020 15:27:50 GMT</pubDate>
    <dc:creator>erric3210</dc:creator>
    <dc:date>2020-10-12T15:27:50Z</dc:date>
    <item>
      <title>Reverse Row Value for ID</title>
      <link>https://community.qlik.com/t5/QlikView/Reverse-Row-Value-for-ID/m-p/1751420#M719121</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I've ID and against that there is one flag which has 1 &amp;amp; 2 values. I want 2nd value for 1st flag and 1st value for 2nd flag.&lt;/P&gt;&lt;P&gt;Is there any simple code for this.&lt;/P&gt;&lt;P&gt;This is my requirement:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Community_Post.png" style="width: 388px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42060iDBA5F06D5A3CC642/image-size/large?v=v2&amp;amp;px=999" role="button" title="Community_Post.png" alt="Community_Post.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For reference, below is the Inline Code:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;ID, Group_Name, Flag_New, Amount&lt;BR /&gt;"Test_Code1", AAA, 1, 40000&lt;BR /&gt;"Test_Code1", BBB, 2, 55000&lt;BR /&gt;"Test_Code2", CCC, 1, 88000&lt;BR /&gt;"Test_Code2", DDD, 2, 91000&lt;BR /&gt;"Test_Code3", EEE, 1, 62000&lt;BR /&gt;"Test_Code3", FFF, 2, 20000&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reverse-Row-Value-for-ID/m-p/1751420#M719121</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2024-11-15T23:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Row Value for ID</title>
      <link>https://community.qlik.com/t5/QlikView/Reverse-Row-Value-for-ID/m-p/1751451#M719122</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14069"&gt;@erric3210&lt;/a&gt;&amp;nbsp; One Option :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:
LOAD * INLINE [
ID, Group_Name, Flag_New, Amount
"Test_Code1", AAA, 1, 40000
"Test_Code1", BBB, 2, 55000
"Test_Code2", CCC, 1, 88000
"Test_Code2", DDD, 2, 91000
"Test_Code3", EEE, 1, 62000
"Test_Code3", FFF, 2, 20000
];

left join 

load pick(Match(Flag_New,'1','2'),'2','1') as Flag_New,ID,Amount as Desired_output resident Data;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 475px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42069i793D39967777E9ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 07:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reverse-Row-Value-for-ID/m-p/1751451#M719122</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-10-12T07:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse Row Value for ID</title>
      <link>https://community.qlik.com/t5/QlikView/Reverse-Row-Value-for-ID/m-p/1751643#M719123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Taoufiq ZARRA,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for the Solution. It worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 15:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reverse-Row-Value-for-ID/m-p/1751643#M719123</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-10-12T15:27:50Z</dc:date>
    </item>
  </channel>
</rss>

