<?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 Comparing string parts - PEEK/PREVIOUS functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-string-parts-PEEK-PREVIOUS-functions/m-p/189048#M52084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody???&lt;/P&gt;&lt;P&gt;=S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jan 2011 20:31:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-27T20:31:00Z</dc:date>
    <item>
      <title>Comparing string parts - PEEK/PREVIOUS functions</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-string-parts-PEEK-PREVIOUS-functions/m-p/189047#M52083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings everyone!&lt;/P&gt;&lt;P&gt;I have the a problem scenario at hands, and I can't put it together as a solution using AQL...&lt;/P&gt;&lt;P&gt;Here it is:&lt;/P&gt;&lt;P&gt;I must read a string part from a field , store it in a variable (or something), and then compare it with other records of the same field, over and over in a loop (FOR... or WHILE... statements), till the end of the table.&lt;/P&gt;&lt;P&gt;I tried using PEEK and PREVIOUS functions together to perform it, but unsuccesfully.&lt;/P&gt;&lt;P&gt;Any ideas how this can be done?&lt;/P&gt;&lt;P&gt;In advance, I'm sorry if the explanation is kinda messy, but I can't find a better way to put it down in this first moment.&lt;/P&gt;&lt;P&gt;Thanx again!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 16:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-string-parts-PEEK-PREVIOUS-functions/m-p/189047#M52083</guid>
      <dc:creator />
      <dc:date>2011-01-27T16:34:55Z</dc:date>
    </item>
    <item>
      <title>Comparing string parts - PEEK/PREVIOUS functions</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-string-parts-PEEK-PREVIOUS-functions/m-p/189048#M52084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody???&lt;/P&gt;&lt;P&gt;=S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 20:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-string-parts-PEEK-PREVIOUS-functions/m-p/189048#M52084</guid>
      <dc:creator />
      <dc:date>2011-01-27T20:31:00Z</dc:date>
    </item>
    <item>
      <title>Comparing string parts - PEEK/PREVIOUS functions</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-string-parts-PEEK-PREVIOUS-functions/m-p/189049#M52085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i'm not following, do you have an example of the input data and the expected result??&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 20:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-string-parts-PEEK-PREVIOUS-functions/m-p/189049#M52085</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-27T20:44:57Z</dc:date>
    </item>
    <item>
      <title>Comparing string parts - PEEK/PREVIOUS functions</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-string-parts-PEEK-PREVIOUS-functions/m-p/189050#M52086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to verify if a portion of a string matches total or partialy the subsequent string to be compared...&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;CUSTOMER_NAME&lt;BR /&gt;________________&lt;BR /&gt;&lt;BR /&gt;Sadia SA&lt;BR /&gt;Sadia S.A&lt;BR /&gt;Sadia S/A&lt;BR /&gt;Sadia S A&lt;BR /&gt;&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;Observing the composition of the strings, they are different matches. But for the business, they are all the same (once I have no access to the source of the information, to treat them all in order to have no such results).&lt;/P&gt;&lt;P&gt;My idea: Read 6 or 8 characters of each string, compare it with all the other records of the same field, in order to retrieve all relevant data.&lt;/P&gt;&lt;P&gt;I first thought about creating a variable that would store the string to be found in the search, but i could not do that...&lt;/P&gt;&lt;P&gt;My nearest strike was that expression:&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;LEFT(CUSTOMER_NAME,6) &lt;B&gt;AS&lt;/B&gt; CUSTOMER_NAME_VAR1&lt;BR /&gt;FROM table1;&lt;BR /&gt;&lt;BR /&gt;Table2:&lt;BR /&gt; IF(WILDMATCH(CUSTOMER_NAME,CUSTOMER_NAME_VAR1 &amp;amp; '*' ) = 1, CUSTOMER_NAME) &lt;B&gt;AS&lt;/B&gt; CUSTOMER_NAME,&lt;BR /&gt;FROM table1;&lt;/P&gt;&lt;P&gt;DROP TABLE table1;&lt;BR /&gt;&lt;BR /&gt;I hope it helps to explain the situation.&lt;/P&gt;&lt;P&gt;THX!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 20:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-string-parts-PEEK-PREVIOUS-functions/m-p/189050#M52086</guid>
      <dc:creator />
      <dc:date>2011-01-27T20:59:39Z</dc:date>
    </item>
    <item>
      <title>Comparing string parts - PEEK/PREVIOUS functions</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-string-parts-PEEK-PREVIOUS-functions/m-p/189051#M52087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;there is an option change the value of this field? maybe with purgechar() and upper&lt;/P&gt;&lt;P&gt;Ex&lt;/P&gt;&lt;P&gt;upper(Purgechar(field,'./&amp;amp;$'))&lt;/P&gt;&lt;P&gt;so this will return 'SADIA SA' for every row&lt;/P&gt;&lt;P&gt;is this helpful?&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 22:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-string-parts-PEEK-PREVIOUS-functions/m-p/189051#M52087</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-27T22:14:17Z</dc:date>
    </item>
  </channel>
</rss>

