<?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: Trimming extra details after third character instance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trimming-extra-details-after-third-character-instance/m-p/984774#M952701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked like a charm! Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2015 20:30:30 GMT</pubDate>
    <dc:creator>dawgfather</dc:creator>
    <dc:date>2015-11-25T20:30:30Z</dc:date>
    <item>
      <title>Trimming extra details after third character instance</title>
      <link>https://community.qlik.com/t5/QlikView/Trimming-extra-details-after-third-character-instance/m-p/984771#M952697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some SQL tables that has data that includes (but might not) a string of characters that has multiple forward slashes. Think of them as similar to folders and subfolders. I am trying to determine a way to trim off the excess after the third "/" - if there is a third - and leave the base details. Essentially I want to see data two folder levels down, but no further. Sample data would include something like the below and then what I am trying to get to below that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample data:&lt;/P&gt;&lt;P&gt;Servername0&lt;/P&gt;&lt;P&gt;Servername1:/vol&lt;/P&gt;&lt;P&gt;Servername2:/vol/folder1/folder2/folder3&lt;/P&gt;&lt;P&gt;Servername2:/vol/folder1/folder3/folder4&lt;/P&gt;&lt;P&gt;Servername2:/vol/folder1/folder5&lt;/P&gt;&lt;P&gt;Servername2:/vol/folder6/folder7/folder8/folder9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data looking for:&lt;/P&gt;&lt;P&gt;Servername0&lt;/P&gt;&lt;P&gt;Servername1:/vol&lt;/P&gt;&lt;P&gt;Servername2:/vol/folder1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Servername2:/vol/folder1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Servername2:/vol/folder1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Servername2:/vol/folder6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have some fancy coding to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do some CHARSET stuff, but then the lines without a "/" get messed up. I can do it all in Excel by doing text to columns and then concatenating selected columns back together (excluding extra columns), but that is overlay painful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 15:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trimming-extra-details-after-third-character-instance/m-p/984771#M952697</guid>
      <dc:creator>dawgfather</dc:creator>
      <dc:date>2015-11-25T15:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trimming extra details after third character instance</title>
      <link>https://community.qlik.com/t5/QlikView/Trimming-extra-details-after-third-character-instance/m-p/984772#M952698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this in QlikView Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SubField(SampleData, '/', 1) &amp;amp; If(Len(KeepChar(SampleData, '/')) &amp;gt;= 1, '/') &amp;amp; SubField(SampleData, '/', 2) &amp;amp; If(Len(KeepChar(SampleData, '/')) &amp;gt;= 2, '/') &amp;amp; SubField(SampleData, '/', 3) as Solution;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SampleData&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Servername0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Servername1:/vol&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Servername2:/vol/folder1/folder2/folder3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Servername2:/vol/folder1/folder3/folder4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Servername2:/vol/folder1/folder5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Servername2:/vol/folder6/folder7/folder8/folder9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107131_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 16:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trimming-extra-details-after-third-character-instance/m-p/984772#M952698</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-25T16:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trimming extra details after third character instance</title>
      <link>https://community.qlik.com/t5/QlikView/Trimming-extra-details-after-third-character-instance/m-p/984773#M952700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * ,&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt; Left(Sample, If(Index(Sample,'/',3), Index(Sample,'/',3)-1,Len(Sample)))&lt;/STRONG&gt; as Result&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Sample&lt;/P&gt;&lt;P&gt;Servername0&lt;/P&gt;&lt;P&gt;Servername1:/vol&lt;/P&gt;&lt;P&gt;Servername2:/vol/folder1/folder2/folder3&lt;/P&gt;&lt;P&gt;Servername2:/vol/folder1/folder3/folder4&lt;/P&gt;&lt;P&gt;Servername2:/vol/folder1/folder5&lt;/P&gt;&lt;P&gt;Servername2:/vol/folder6/folder7/folder8/folder9&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 16:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trimming-extra-details-after-third-character-instance/m-p/984773#M952700</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-25T16:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trimming extra details after third character instance</title>
      <link>https://community.qlik.com/t5/QlikView/Trimming-extra-details-after-third-character-instance/m-p/984774#M952701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked like a charm! Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 20:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trimming-extra-details-after-third-character-instance/m-p/984774#M952701</guid>
      <dc:creator>dawgfather</dc:creator>
      <dc:date>2015-11-25T20:30:30Z</dc:date>
    </item>
  </channel>
</rss>

