<?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 Extracting a String from a Larger String in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extracting-a-String-from-a-Larger-String/m-p/152350#M29818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can either put this on Dimension expression or load script. Will only work if the last instance of OU=&amp;lt;Value&amp;gt; is beside OU=Enterprise. I hope this helps.&lt;/P&gt;&lt;P&gt;TextBetween(&lt;I&gt;&amp;lt;Your String Column&amp;gt;&lt;/I&gt;, ',OU=', ',OU=Enterprise',substringcount(&amp;lt;&lt;I&gt;Your String Column&lt;/I&gt;&amp;gt;,',OU=')-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 03:41:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-21T03:41:26Z</dc:date>
    <item>
      <title>Extracting a String from a Larger String</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-a-String-from-a-Larger-String/m-p/152348#M29816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I worked on this quite a bit today using the various examples I found in the forums but I still can't get the result I need.&lt;/P&gt;&lt;P&gt;I need to extract the name of the last OU value before 'OU=Enterprise' is encountered. The number of OUs in the string can vary so trying to find the logic to deal with that is killing me.&lt;/P&gt;&lt;P&gt;&lt;IMG src="file:/C:/DOCUME~1/garlandb/LOCALS~1/Temp/moz-screenshot.png" /&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-2621_sourceID:2621" /&gt;&lt;/P&gt;&lt;P&gt;In the example above, I need my chart dimension to give me 'Food', 'Food' and 'Deskless Workers'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 02:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-a-String-from-a-Larger-String/m-p/152348#M29816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-21T02:26:16Z</dc:date>
    </item>
    <item>
      <title>Extracting a String from a Larger String</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-a-String-from-a-Larger-String/m-p/152349#M29817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A quick and not-so-dirty solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;AD:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ActiveDirectoryString&lt;BR /&gt;'CN=Alpine\,Patricia,OU=Users,OU=123,OU=Cladwell,OU=Food,OU=Enterprise,DC=na,DC=simplot,DC=com'&lt;BR /&gt;'CN=Anderson\,Beverly G,OU=Plant Users,OU=Cladwell,OU=Food,OU=Enterprise,DC=na,DC=simplot,DC=com'&lt;BR /&gt;'CN=Anderson\,Misti,OU=A-H,OU=Deskless Workers,OU=Enterprise,DC=na,DC=simplot,DC=com'&lt;BR /&gt;];&lt;BR /&gt;ADNew:&lt;BR /&gt;LOAD if(x1='OU=Enterprise', replace(previous(x1), 'OU=', '')) as Dimension;&lt;BR /&gt;LOAD subfield(ActiveDirectoryString, ',') as x1&lt;BR /&gt;RESIDENT AD;&lt;BR /&gt;DROP Table AD;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I am sure there are many other fancier ways to do the same.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 03:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-a-String-from-a-Larger-String/m-p/152349#M29817</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-10-21T03:17:22Z</dc:date>
    </item>
    <item>
      <title>Extracting a String from a Larger String</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-a-String-from-a-Larger-String/m-p/152350#M29818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can either put this on Dimension expression or load script. Will only work if the last instance of OU=&amp;lt;Value&amp;gt; is beside OU=Enterprise. I hope this helps.&lt;/P&gt;&lt;P&gt;TextBetween(&lt;I&gt;&amp;lt;Your String Column&amp;gt;&lt;/I&gt;, ',OU=', ',OU=Enterprise',substringcount(&amp;lt;&lt;I&gt;Your String Column&lt;/I&gt;&amp;gt;,',OU=')-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 03:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-a-String-from-a-Larger-String/m-p/152350#M29818</guid>
      <dc:creator />
      <dc:date>2010-10-21T03:41:26Z</dc:date>
    </item>
    <item>
      <title>Extracting a String from a Larger String</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-a-String-from-a-Larger-String/m-p/152351#M29819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;STRONG&gt;&lt;A&gt;pinongs&lt;/A&gt;&lt;/STRONG&gt;, that was perfect. As with everything in QlikView, the solution was far easier than I thought it would be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 05:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-a-String-from-a-Larger-String/m-p/152351#M29819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-21T05:52:26Z</dc:date>
    </item>
  </channel>
</rss>

