<?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 Find a string into the values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-a-string-into-the-values/m-p/387468#M144611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field which can take the values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAMB&lt;/P&gt;&lt;P&gt;CONT&lt;/P&gt;&lt;P&gt;DSTO&lt;/P&gt;&lt;P&gt;DSTO,CAMB&lt;/P&gt;&lt;P&gt;DSTO,PRC&lt;/P&gt;&lt;P&gt;DSTO,PRC,CAMB&lt;/P&gt;&lt;P&gt;ESTA&lt;/P&gt;&lt;P&gt;ESTA,DSTO&lt;/P&gt;&lt;P&gt;ESTA,DSTO,PRC&lt;/P&gt;&lt;P&gt;PRC&lt;/P&gt;&lt;P&gt;PRC,CAMB&lt;/P&gt;&lt;P&gt;UPGR&lt;/P&gt;&lt;P&gt;UPGR,DSTO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a new field which resume that values in only four:&lt;/P&gt;&lt;P&gt;CAMB&lt;/P&gt;&lt;P&gt;CONT&lt;/P&gt;&lt;P&gt;DSTO&lt;/P&gt;&lt;P&gt;REST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each value of the original field containing the string 'DSTO' the value of the new field must be DSTO, if not for each value containing 'CONT' the value of the new field must be 'CONT', if not idem with CAMB and the rest of casas must be REST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I am looking for a commad how look for the string into the original field taking the values 'true' or 'false', combined with a chain of "if ...then"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What command or function I need to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 257px; left: -10000px;"&gt;&lt;OBJECT classid="CLSID:A806E1D7-B077-415E-AF08-28AFE10DDF4A" height="266" id="QlikOCX" width="160"&gt;&lt;PARAM name="DocName" value="C:\Users\lmenendez\Desktop\Pruebas\LUIS\BP COMERCIAL\Comparativos produccion por tipo.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\LB33" /&gt;&lt;/OBJECT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2012 16:06:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-05T16:06:00Z</dc:date>
    <item>
      <title>Find a string into the values</title>
      <link>https://community.qlik.com/t5/QlikView/Find-a-string-into-the-values/m-p/387468#M144611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field which can take the values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAMB&lt;/P&gt;&lt;P&gt;CONT&lt;/P&gt;&lt;P&gt;DSTO&lt;/P&gt;&lt;P&gt;DSTO,CAMB&lt;/P&gt;&lt;P&gt;DSTO,PRC&lt;/P&gt;&lt;P&gt;DSTO,PRC,CAMB&lt;/P&gt;&lt;P&gt;ESTA&lt;/P&gt;&lt;P&gt;ESTA,DSTO&lt;/P&gt;&lt;P&gt;ESTA,DSTO,PRC&lt;/P&gt;&lt;P&gt;PRC&lt;/P&gt;&lt;P&gt;PRC,CAMB&lt;/P&gt;&lt;P&gt;UPGR&lt;/P&gt;&lt;P&gt;UPGR,DSTO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a new field which resume that values in only four:&lt;/P&gt;&lt;P&gt;CAMB&lt;/P&gt;&lt;P&gt;CONT&lt;/P&gt;&lt;P&gt;DSTO&lt;/P&gt;&lt;P&gt;REST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each value of the original field containing the string 'DSTO' the value of the new field must be DSTO, if not for each value containing 'CONT' the value of the new field must be 'CONT', if not idem with CAMB and the rest of casas must be REST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I am looking for a commad how look for the string into the original field taking the values 'true' or 'false', combined with a chain of "if ...then"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What command or function I need to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 257px; left: -10000px;"&gt;&lt;OBJECT classid="CLSID:A806E1D7-B077-415E-AF08-28AFE10DDF4A" height="266" id="QlikOCX" width="160"&gt;&lt;PARAM name="DocName" value="C:\Users\lmenendez\Desktop\Pruebas\LUIS\BP COMERCIAL\Comparativos produccion por tipo.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\LB33" /&gt;&lt;/OBJECT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 16:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-a-string-into-the-values/m-p/387468#M144611</guid>
      <dc:creator />
      <dc:date>2012-10-05T16:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find a string into the values</title>
      <link>https://community.qlik.com/t5/QlikView/Find-a-string-into-the-values/m-p/387469#M144612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;if(index(MyField,'DSTO'),'DSTO',if(index(MyField,'CONT'),'CONT',if(index(MyField,'CAMB'),'CAMB','REST')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 16:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-a-string-into-the-values/m-p/387469#M144612</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-05T16:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find a string into the values</title>
      <link>https://community.qlik.com/t5/QlikView/Find-a-string-into-the-values/m-p/387470#M144613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 19:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-a-string-into-the-values/m-p/387470#M144613</guid>
      <dc:creator />
      <dc:date>2012-10-05T19:37:05Z</dc:date>
    </item>
  </channel>
</rss>

