<?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 Replacing some text in field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258021#M397210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to get result for below scenario. I have field called location where some paths are available. I need to keep all paths started with C: or c: as it is and remaining drives i need to replace with 'OtherThanC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: Original values - f:\link\linkng630&lt;/P&gt;&lt;P&gt;Result should be - OtherThanC:\link\linkng630&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 520px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" width="520"&gt;Location&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;U:\Users\Center\appdata\roaming\microsoft\windows\start menu\programs\startup&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;u:\users\center\appdata\roaming\microsoft\windows\start menu\programs\startup&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;V:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;v:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;v:\program files&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;v:\program files\dbs&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;f:\link\linkng630&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;f:\link\linkng630\lng&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;D:\program files (x86)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;d:\program files (x86)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;c:\windows\syswow64\adobe\director&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;C:\windows\syswow64\adobe\shockwave 12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;c:\windows\syswow64\adobe\shockwave 12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;c:\windows\syswow64\adobe\svg viewer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;c:\windows\syswow64\adobe\svg viewer 3.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using replace, subfield functions but cannot able to get this result. This is sample data and path could be anything irrespective of depth of path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me how to create new field using 'Location' field to get accurate result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 08:40:51 GMT</pubDate>
    <dc:creator>raju_salmon</dc:creator>
    <dc:date>2016-11-16T08:40:51Z</dc:date>
    <item>
      <title>Replacing some text in field</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258021#M397210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to get result for below scenario. I have field called location where some paths are available. I need to keep all paths started with C: or c: as it is and remaining drives i need to replace with 'OtherThanC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: Original values - f:\link\linkng630&lt;/P&gt;&lt;P&gt;Result should be - OtherThanC:\link\linkng630&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 520px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" width="520"&gt;Location&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;U:\Users\Center\appdata\roaming\microsoft\windows\start menu\programs\startup&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;u:\users\center\appdata\roaming\microsoft\windows\start menu\programs\startup&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;V:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;v:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;v:\program files&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;v:\program files\dbs&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;f:\link\linkng630&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;f:\link\linkng630\lng&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;D:\program files (x86)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;d:\program files (x86)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;c:\windows\syswow64\adobe\director&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;C:\windows\syswow64\adobe\shockwave 12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;c:\windows\syswow64\adobe\shockwave 12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;c:\windows\syswow64\adobe\svg viewer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;c:\windows\syswow64\adobe\svg viewer 3.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using replace, subfield functions but cannot able to get this result. This is sample data and path could be anything irrespective of depth of path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me how to create new field using 'Location' field to get accurate result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 08:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258021#M397210</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-11-16T08:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing some text in field</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258022#M397211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if(upper(Left(Location,1))='C', Location, 'OtherThanC:'&amp;amp;SubField(Location,':',2)) as NewLocation&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 08:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258022#M397211</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-16T08:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing some text in field</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258023#M397212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju, every row starts with a letter and a colon?, in that case;&lt;/P&gt;&lt;P&gt;'OtherThanC' &amp;amp; Mid(Location, Index(Location, ':'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add a check to keep the lowercased c:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I first wrong-readed convert to 'C', if the text is OtherThanC, the check is neccesary, use the option given by tresesco.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used mid in case there will be another colon in the string, but if this are paths colons are not allowed so there is no need to consider.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 08:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258023#M397212</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-16T08:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing some text in field</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258024#M397213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;if(wildmatch(left(Location,1),'c','C'),Location,Replace('Otherthanc:'&amp;amp;''&amp;amp;subfield(Location,':',-1),Location,Location))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 08:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258024#M397213</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2016-11-16T08:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing some text in field</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258025#M397214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco,&lt;/P&gt;&lt;P&gt;I have two issues here.&lt;/P&gt;&lt;P&gt;One is my path may start more than one letter drive like&lt;/P&gt;&lt;P&gt;ADE:\windows\syswow64\adobe\svg viewer&lt;/P&gt;&lt;P&gt;Tres:\windows\syswow64\adobe\svg viewer 3.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second one is, if i concatenate only &lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;amp;SubField(Location,':',2)how i can get whole path? Please help me&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 09:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258025#M397214</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-11-16T09:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing some text in field</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258026#M397215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Location&lt;/P&gt;&lt;P&gt;U:\Users\Center\appdata\roaming\microsoft\windows\start menu\programs\startup&lt;/P&gt;&lt;P&gt;u:\users\center\appdata\roaming\microsoft\windows\start menu\programs\startup&lt;/P&gt;&lt;P&gt;V:&lt;/P&gt;&lt;P&gt;v:&lt;/P&gt;&lt;P&gt;v:\program files&lt;/P&gt;&lt;P&gt;v:\program files\dbs&lt;/P&gt;&lt;P&gt;f:\link\linkng630&lt;/P&gt;&lt;P&gt;f:\link\linkng630\lng&lt;/P&gt;&lt;P&gt;D:\program files (x86)&lt;/P&gt;&lt;P&gt;d:\program files (x86)&lt;/P&gt;&lt;P&gt;c:\windows\syswow64\adobe\director&lt;/P&gt;&lt;P&gt;C:\windows\syswow64\adobe\shockwave 12&lt;/P&gt;&lt;P&gt;c:\windows\syswow64\adobe\shockwave 12&lt;/P&gt;&lt;P&gt;c:\windows\syswow64\adobe\svg viewer&lt;/P&gt;&lt;P&gt;c:\windows\syswow64\adobe\svg viewer 3.0&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;left(Location,1),&lt;/P&gt;&lt;P&gt;If( Match(left(Trim(Location),1),'C') or Match(left(Trim(Location),1),'c'),Location, Replace(Location,left(Trim(Location),1),'OtherThanC')) as Status&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 09:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258026#M397215</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2016-11-16T09:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing some text in field</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258027#M397216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately i have path without : also. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 09:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258027#M397216</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-11-16T09:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing some text in field</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258028#M397217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for confusion guys... please find the attached sample data for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will be helpful to understand the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 09:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258028#M397217</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-11-16T09:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing some text in field</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258029#M397218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&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;STRONG&gt;If(Left(Location,2)&amp;lt;&amp;gt;'\\' and Upper(SubField(Location,'\',1))&amp;lt;&amp;gt;'C:',Replace(Location,SubField(Location,'\',1), 'OtherThanC:'),Location) as New_Location&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From Source;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 09:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258029#M397218</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-11-16T09:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing some text in field</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258030#M397219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me do we have any function to take out last folder/file name out of path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\windows\syswow64\adobe\abc.xls&lt;/P&gt;&lt;P&gt;c:\windows\syswow64\adobe\shockwave 12\abc.doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 10:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258030#M397219</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-11-16T10:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing some text in field</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258031#M397220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju, also with the Subfield function:&lt;/P&gt;&lt;P&gt;subfield(Location, '\', -1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-some-text-in-field/m-p/1258031#M397220</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-16T11:04:05Z</dc:date>
    </item>
  </channel>
</rss>

