<?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 Invert content of a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Invert-content-of-a-variable/m-p/875712#M659452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing this issue where I really need a solution for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a file containing an identifier (MORO-ID) and a route. This route is composed of a varying number of stationcodes, each time separated by a semicolon. For some of the MORO-ID's, I now need to invert the route. So given a route a;b;c;d;e;f;g this would need to become g;f;e;d;c;b;a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone give me a hint on how to tackle this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(file attached)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 13:00:17 GMT</pubDate>
    <dc:creator>puttemans</dc:creator>
    <dc:date>2015-04-21T13:00:17Z</dc:date>
    <item>
      <title>Invert content of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Invert-content-of-a-variable/m-p/875712#M659452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing this issue where I really need a solution for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a file containing an identifier (MORO-ID) and a route. This route is composed of a varying number of stationcodes, each time separated by a semicolon. For some of the MORO-ID's, I now need to invert the route. So given a route a;b;c;d;e;f;g this would need to become g;f;e;d;c;b;a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone give me a hint on how to tackle this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(file attached)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 13:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invert-content-of-a-variable/m-p/875712#M659452</guid>
      <dc:creator>puttemans</dc:creator>
      <dc:date>2015-04-21T13:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Invert content of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Invert-content-of-a-variable/m-p/875713#M659453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/406430"&gt;Reverse string&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 13:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invert-content-of-a-variable/m-p/875713#M659453</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2015-04-21T13:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Invert content of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Invert-content-of-a-variable/m-p/875714#M659454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attached file,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/84230_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;100000000- rowno() as Seqno&lt;/P&gt;&lt;P&gt;Where len(REV_ROUTE_TEMP)&amp;gt;0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD [MORO_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] as MORO_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROUTE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subfield(trim(ROUTE),';') as REV_ROUTE_TEMP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[MOBIB_ROUTE_2015.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data2:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;MORO_ID,&lt;/P&gt;&lt;P&gt;';'&amp;amp;Concat(REV_ROUTE_TEMP,';',Seqno)&amp;amp;';' as REV_ROUTE&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;group by MORO_ID&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Data;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 14:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invert-content-of-a-variable/m-p/875714#M659454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T14:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Invert content of a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Invert-content-of-a-variable/m-p/875715#M659455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amarbogam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your solution. To me, it is really impressing. In just 20 seconds, all lines are inverted !&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>Wed, 29 Apr 2015 12:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invert-content-of-a-variable/m-p/875715#M659455</guid>
      <dc:creator>puttemans</dc:creator>
      <dc:date>2015-04-29T12:57:13Z</dc:date>
    </item>
  </channel>
</rss>

