<?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: Null in String in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Null-in-String/m-p/457636#M170880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, the formula is working, I just place it in the wrong table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 16:14:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-01T16:14:34Z</dc:date>
    <item>
      <title>Null in String</title>
      <link>https://community.qlik.com/t5/QlikView/Null-in-String/m-p/457635#M170879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to change during the loading process a 0 (zero) for a 'O' in the middle of the string.&lt;/P&gt;&lt;P&gt;As an exemple, I have the following data: C.A9.M&lt;STRONG style="color: #ff0000;"&gt;0&lt;/STRONG&gt;38.000.000.SIP where I need to change the 0 (the one following the M) to a O.&lt;/P&gt;&lt;P&gt;I try the following options and they doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(mid(EPEP,7,1)=0, Mid(EPEP,1,6)&amp;amp;'O'&amp;amp;right(EPEP,14) as EPEP_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(isnull(mid(EPEP,7,1))=-1, Mid(EPEP,1,6)&amp;amp;'O'&amp;amp;right(EPEP,14) as EPEP_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(mid(EPEP,7,1)='0', Mid(EPEP,1,6)&amp;amp;'O'&amp;amp;right(EPEP,14) as EPEP_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EPEP is the name of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion? I think the solution must be simple..... but I'm blind for the moment. Thanks in advance for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 16:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-in-String/m-p/457635#M170879</guid>
      <dc:creator />
      <dc:date>2012-10-01T16:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Null in String</title>
      <link>https://community.qlik.com/t5/QlikView/Null-in-String/m-p/457636#M170880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, the formula is working, I just place it in the wrong table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 16:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-in-String/m-p/457636#M170880</guid>
      <dc:creator />
      <dc:date>2012-10-01T16:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Null in String</title>
      <link>https://community.qlik.com/t5/QlikView/Null-in-String/m-p/457637#M170881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The last one worked for me, there was only a closing bracket missing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EPEP,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(mid(EPEP,7,1)='0', Mid(EPEP,1,6)&amp;amp;'O'&amp;amp;right(EPEP,14)&lt;STRONG&gt;)&lt;/STRONG&gt; as EPEP_2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EPEP&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C.A9.M038.000.000.SIP&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you probably want to keep the original in the else branch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EPEP,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(mid(EPEP,7,1)='0', Mid(EPEP,1,6)&amp;amp;'O'&amp;amp;right(EPEP,14)&lt;STRONG&gt;,EPEP) &lt;/STRONG&gt;as EPEP_2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EPEP&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C.A9.M038.000.000.SIP&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 16:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Null-in-String/m-p/457637#M170881</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-01T16:17:29Z</dc:date>
    </item>
  </channel>
</rss>

