<?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: Replacing only character in a specific location on the string via qv load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041805#M350541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this for Part 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Mid(code, 2, 1) = 'D' and Len(code) = 11, Left(code, 1) &amp;amp; Right(code, 9))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2016 10:44:26 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-01-21T10:44:26Z</dc:date>
    <item>
      <title>Replacing only character in a specific location on the string via qv load</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041803#M350539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing a qv load and in the load I am loading a set of codes for items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the codes either start with a&amp;nbsp; D&amp;nbsp; or a WD then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to replace it with an M if D is position one..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this one I got the if statement but the replace is replacing all the D in the code.. I just want the first one.. and im not sure why its not working below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;left&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;code&lt;/SPAN&gt;,1)='D',&lt;SPAN style="color: #0000ff;"&gt;replace&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;code&lt;/SPAN&gt;,(&lt;SPAN style="color: #0000ff;"&gt;left&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;code&lt;/SPAN&gt;,1)),'M')) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; code&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 14pt;"&gt;2 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; or delete the D if its in the 2nd position and code length greater that 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure how to do part 2.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 18pt;"&gt;code&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;,2)='D',(if(count,code)=11)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 23:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041803#M350539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-20T23:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing only character in a specific location on the string via qv load</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041804#M350540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this for Part 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Left(code, 1) = 'D', 'M' &amp;amp; Right(code, (Len(code) - 1)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 10:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041804#M350540</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-21T10:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing only character in a specific location on the string via qv load</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041805#M350541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this for Part 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Mid(code, 2, 1) = 'D' and Len(code) = 11, Left(code, 1) &amp;amp; Right(code, 9))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 10:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041805#M350541</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-21T10:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing only character in a specific location on the string via qv load</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041806#M350542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;had to change the above to length to 12 but it works..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know how I can put this in one if statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right now when I do this.. It makes 2 columns&amp;nbsp; of data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if code 1&amp;nbsp; = column data 1&lt;/P&gt;&lt;P&gt;if code 2 = column data 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I run both to get it into one column data 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 17:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041806#M350542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-21T17:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing only character in a specific location on the string via qv load</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041807#M350543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess which one do you want to check first? First Letter = 'D' or the Second Letter = 'D'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If First Letter = 'D', then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Left(code, 1) = 'D', 'M' &amp;amp; Right(code, (Len(code) - 1)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;If(Mid(code, 2, 1) = 'D' and Len(code) = 11, Left(code, 1) &amp;amp; Right(code, 9)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;, ElseConditionIfNeeded&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Second Letter = 'D'&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Mid(code, 2, 1) = 'D' and Len(code) = 11, Left(code, 1) &amp;amp; Right(code, 9)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Left(code, 1) = 'D', 'M' &amp;amp; Right(code, (Len(code) - 1))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;, ElseConditionIfNeeded&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041807#M350543</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-21T18:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing only character in a specific location on the string via qv load</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041808#M350544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;everytime I do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(Left(code, 1) = 'D', 'M' &amp;amp; Right(code, (Len(code) - 1)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(Mid(code, 2, 1) = 'D' and Len(code) = 11, Left(code, 1) &amp;amp; Right(code, 9) as code2)),&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;I get an missing ) error...&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041808#M350544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-21T18:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing only character in a specific location on the string via qv load</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041809#M350545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably need this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;If(Left(code, 1) = 'D', 'M' &amp;amp; Right(code, (Len(code) - 1)),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;If(Mid(code, 2, 1) = 'D' and Len(code) = 11, Left(code, 1) &amp;amp; Right(code, 9)&lt;SPAN style="color: #ff0000;"&gt;))&lt;/SPAN&gt; as code2,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041809#M350545</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-21T18:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing only character in a specific location on the string via qv load</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041810#M350546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perfect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 19:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-only-character-in-a-specific-location-on-the-string/m-p/1041810#M350546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-21T19:07:01Z</dc:date>
    </item>
  </channel>
</rss>

