<?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: Findoneof keeping the same value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695366#M1083455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;It's not a bug.&lt;/STRONG&gt;&lt;/SPAN&gt; With your logic, if you use &lt;STRONG&gt;Mid() &lt;/STRONG&gt;instead of right(), it works. Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lower(&lt;STRONG&gt;Mid&lt;/STRONG&gt;([Authenticated user],findoneof([Authenticated user],'\')+1) ) as [Authenticated user stripped],&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2014 13:13:29 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-06-17T13:13:29Z</dc:date>
    <item>
      <title>Findoneof keeping the same value</title>
      <link>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695360#M1083449</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 am using the logic below to strip out the domain from a username e.g. user1\username -&amp;gt; username.&amp;nbsp; It works fine for the majority of users, but a few have a longer domain, but it only removes the same length as the shorter one rather than being reactive to the different length. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;lower(right([Authenticated user],findoneof([Authenticated user],'\')+1) ) as [Authenticated user stripped],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user1\username&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; username&lt;/P&gt;&lt;P&gt;longuser1\username&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; ser1\username&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 10SR6 for this project - I cannot see this as a known issue but maybe I have missed something, or is this expected functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 12:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695360#M1083449</guid>
      <dc:creator>paulm</dc:creator>
      <dc:date>2014-06-17T12:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Findoneof keeping the same value</title>
      <link>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695361#M1083450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHy don't you try subfield([Authenticated user], '\') ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 12:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695361#M1083450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-17T12:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Findoneof keeping the same value</title>
      <link>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695362#M1083451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with subfield() like:&lt;/P&gt;&lt;P&gt;SubField([Authenticated user] , '\' ,2) as [Authenticated user stripped]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 12:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695362#M1083451</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-17T12:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Findoneof keeping the same value</title>
      <link>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695363#M1083452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;right([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Authenticated user&lt;/SPAN&gt;],Len(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Authenticated user&lt;/SPAN&gt;) - index([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Authenticated user&lt;/SPAN&gt;],'\')) as [Authenticated user stripped]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subfield is a better solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 12:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695363#M1083452</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-06-17T12:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Findoneof keeping the same value</title>
      <link>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695364#M1083453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the replies. I have changed it to substring, I assume that is the correct result if using findoneof?&amp;nbsp; Just seemed like a bug to me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 13:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695364#M1083453</guid>
      <dc:creator>paulm</dc:creator>
      <dc:date>2014-06-17T13:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Findoneof keeping the same value</title>
      <link>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695365#M1083454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no bug, you did not write it correctly. You need to take the string length minus the findoneof...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 13:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695365#M1083454</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-06-17T13:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Findoneof keeping the same value</title>
      <link>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695366#M1083455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;It's not a bug.&lt;/STRONG&gt;&lt;/SPAN&gt; With your logic, if you use &lt;STRONG&gt;Mid() &lt;/STRONG&gt;instead of right(), it works. Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lower(&lt;STRONG&gt;Mid&lt;/STRONG&gt;([Authenticated user],findoneof([Authenticated user],'\')+1) ) as [Authenticated user stripped],&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 13:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Findoneof-keeping-the-same-value/m-p/695366#M1083455</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-17T13:13:29Z</dc:date>
    </item>
  </channel>
</rss>

