<?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: Nesting IF and REPLACE to clean in data load in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/Nesting-IF-and-REPLACE-to-clean-in-data-load/m-p/1585098#M136651</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use it like this:&lt;BR /&gt;&lt;BR /&gt;load&lt;BR /&gt;CCT_THIRDPARTY,&lt;BR /&gt;If&lt;BR /&gt;(&lt;BR /&gt;Index(REPLACE("CCT_THIRDPARTY", 'LOC', 'ORD'),'ORD-',1)=1,&lt;BR /&gt;Mid(REPLACE("CCT_THIRDPARTY", 'LOC', 'ORD'),Index(REPLACE("CCT_THIRDPARTY", 'LOC', 'ORD'),'ORD-',1),12)&lt;BR /&gt;) as Clean_CCT;&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;CCT_THIRDPARTY&lt;BR /&gt;LOC-10000000.1&lt;BR /&gt;ORD-10000000.4&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;this will change any LOC to ord and then apply your logic.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.</description>
    <pubDate>Mon, 27 May 2019 13:11:51 GMT</pubDate>
    <dc:creator>felipedl</dc:creator>
    <dc:date>2019-05-27T13:11:51Z</dc:date>
    <item>
      <title>Nesting IF and REPLACE to clean in data load</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Nesting-IF-and-REPLACE-to-clean-in-data-load/m-p/1584569#M136535</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm having trouble creating an IF statement that cleans and pulls through the correct text from a string.&lt;/P&gt;&lt;P&gt;I have 2x types of strings in my data source, see below;&lt;/P&gt;&lt;P&gt;LOC-10000000.1&lt;/P&gt;&lt;P&gt;ORD-10000000.4&lt;/P&gt;&lt;P&gt;The cleaned versions will be ORD-XXXXXXXX (so ignoring any additional characters after the 8 numbers AND replacing LOC with ORD). This is so I can then match up to another data table.&lt;/P&gt;&lt;P&gt;I currently have;&lt;/P&gt;&lt;P&gt;LOAD "CCT_THIRDPARTY",&lt;BR /&gt;If(Index("CCT_THIRDPARTY",'ORD-',1)=1,&lt;BR /&gt;Mid("CCT_THIRDPARTY",Index("CCT_THIRDPARTY",'ORD-',1),12))&amp;nbsp; &amp;nbsp; &amp;nbsp; as Clean_CCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I go about adding REPLACE("CCT_THIRDPARTY", 'LOC', 'ORD') to this statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 15:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Nesting-IF-and-REPLACE-to-clean-in-data-load/m-p/1584569#M136535</guid>
      <dc:creator>RWilliams92</dc:creator>
      <dc:date>2019-05-24T15:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting IF and REPLACE to clean in data load</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Nesting-IF-and-REPLACE-to-clean-in-data-load/m-p/1585098#M136651</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use it like this:&lt;BR /&gt;&lt;BR /&gt;load&lt;BR /&gt;CCT_THIRDPARTY,&lt;BR /&gt;If&lt;BR /&gt;(&lt;BR /&gt;Index(REPLACE("CCT_THIRDPARTY", 'LOC', 'ORD'),'ORD-',1)=1,&lt;BR /&gt;Mid(REPLACE("CCT_THIRDPARTY", 'LOC', 'ORD'),Index(REPLACE("CCT_THIRDPARTY", 'LOC', 'ORD'),'ORD-',1),12)&lt;BR /&gt;) as Clean_CCT;&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;CCT_THIRDPARTY&lt;BR /&gt;LOC-10000000.1&lt;BR /&gt;ORD-10000000.4&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;this will change any LOC to ord and then apply your logic.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.</description>
      <pubDate>Mon, 27 May 2019 13:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Nesting-IF-and-REPLACE-to-clean-in-data-load/m-p/1585098#M136651</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2019-05-27T13:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Nesting IF and REPLACE to clean in data load</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Nesting-IF-and-REPLACE-to-clean-in-data-load/m-p/1586040#M136841</link>
      <description>&lt;P&gt;Perfect! Thank you that worked a treat.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Nesting-IF-and-REPLACE-to-clean-in-data-load/m-p/1586040#M136841</guid>
      <dc:creator>RWilliams92</dc:creator>
      <dc:date>2019-05-29T09:46:54Z</dc:date>
    </item>
  </channel>
</rss>

