<?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: Combing two functions in load script (trim and replace) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320987#M28521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(Len(Trim(Instructor_Name)) &amp;gt; 0, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Replace (Instructor_Name,'&amp;nbsp; ',' ')&lt;/SPAN&gt;, 'None Specified') as [Instructor name]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2017 16:41:21 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-07-17T16:41:21Z</dc:date>
    <item>
      <title>Combing two functions in load script (trim and replace)</title>
      <link>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320986#M28520</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;I'm trying to clean up a field and need to apply two functions in the load script. I've read through several other discussion posts and just can't seem to get the right syntax for this to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the two functions that I'd like to combine (both work as expected on their own). Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Len(Trim(Instructor_Name)) &amp;gt; 0, Instructor_Name, 'None Specified') as [Instructor name],&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Replaced blanks with text&lt;/P&gt;&lt;P&gt;Replace (Instructor_Name,'&amp;nbsp; ',' ') as [Instructor name],&amp;nbsp;&amp;nbsp;&amp;nbsp; //Removes extra spaces between instructor names&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;P&gt;R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 16:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320986#M28520</guid>
      <dc:creator>drminaker</dc:creator>
      <dc:date>2017-07-17T16:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Combing two functions in load script (trim and replace)</title>
      <link>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320987#M28521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(Len(Trim(Instructor_Name)) &amp;gt; 0, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Replace (Instructor_Name,'&amp;nbsp; ',' ')&lt;/SPAN&gt;, 'None Specified') as [Instructor name]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 16:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320987#M28521</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-17T16:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Combing two functions in load script (trim and replace)</title>
      <link>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320988#M28522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan, you can use Trim to remove the extra spaces:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(Len(Trim(Instructor_Name)) &amp;gt; 0, &lt;STRONG&gt;Trim(&lt;/STRONG&gt;Instructor_Name&lt;STRONG&gt;)&lt;/STRONG&gt;, 'None Specified') as [Instructor name]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 16:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320988#M28522</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-07-17T16:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Combing two functions in load script (trim and replace)</title>
      <link>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320989#M28523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it seems that the OP is looking to making double space into single space.....but I might be wrong...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 16:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320989#M28523</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-17T16:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Combing two functions in load script (trim and replace)</title>
      <link>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320990#M28524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was just to give an idea, the comments says "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Removes extra spaces between instructor names&lt;/SPAN&gt;" but the code will only work if there are exactly two spaces, not three or more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 17:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320990#M28524</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-07-17T17:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Combing two functions in load script (trim and replace)</title>
      <link>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320991#M28525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, thanks so much. I was trying to add the Replace before/after the Trim, not combining the two as you've done, which is obviously why I didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 18:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320991#M28525</guid>
      <dc:creator>drminaker</dc:creator>
      <dc:date>2017-07-17T18:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Combing two functions in load script (trim and replace)</title>
      <link>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320992#M28526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ruben! I was trying to remove cases where people's names had an accidental double space between first and last. My first attempt at solving this was with Trim, but realized I couldn't use it to remove extra spaces inside a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 18:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320992#M28526</guid>
      <dc:creator>drminaker</dc:creator>
      <dc:date>2017-07-17T18:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Combing two functions in load script (trim and replace)</title>
      <link>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320993#M28527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, I don't know when I started to think that it removes spaces in the middle. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 06:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combing-two-functions-in-load-script-trim-and-replace/m-p/1320993#M28527</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-07-18T06:23:39Z</dc:date>
    </item>
  </channel>
</rss>

