<?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: Check if a value exists in a column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-if-a-value-exists-in-a-column/m-p/1154964#M377021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add a 1 to the set analysis to tell it to ignore all selections:&lt;/P&gt;&lt;P&gt;&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(match(OSUser(), $(=concat({1}distinct chr(39) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SupervisorNTName &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;amp; chr(39),','))), 1, 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2016 14:11:06 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2016-06-09T14:11:06Z</dc:date>
    <item>
      <title>Check if a value exists in a column</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-a-value-exists-in-a-column/m-p/1154961#M377018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the OSUser() function to determine whether a user can see specific objects in my QV app. I have an inline script loading a field called SupervisorNTName which contains the AD account names for Supervisors that I want to be able to see specific objects, whereas others cannot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I write a conditional statement that checks whether the current OSUser() value exists within the SupervisorNTName column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 21:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-a-value-exists-in-a-column/m-p/1154961#M377018</guid>
      <dc:creator />
      <dc:date>2016-06-08T21:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a column</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-a-value-exists-in-a-column/m-p/1154962#M377019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like the following should work:&lt;/P&gt;&lt;P&gt;if(match(OSUser(), $(=concat(distinct chr(39) &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SupervisorNTName &lt;/SPAN&gt;&amp;amp; chr(39),','))), 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation: match() checks if OSUser() is in any of the values returned by the concat() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 21:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-a-value-exists-in-a-column/m-p/1154962#M377019</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2016-06-08T21:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a column</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-a-value-exists-in-a-column/m-p/1154963#M377020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I modify that expression to work regardless of what values are selected for SupervisorNTName?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 21:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-a-value-exists-in-a-column/m-p/1154963#M377020</guid>
      <dc:creator />
      <dc:date>2016-06-08T21:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a column</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-a-value-exists-in-a-column/m-p/1154964#M377021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add a 1 to the set analysis to tell it to ignore all selections:&lt;/P&gt;&lt;P&gt;&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(match(OSUser(), $(=concat({1}distinct chr(39) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SupervisorNTName &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;amp; chr(39),','))), 1, 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 14:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-a-value-exists-in-a-column/m-p/1154964#M377021</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2016-06-09T14:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a column</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-a-value-exists-in-a-column/m-p/1154965#M377022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just did something very similar, there is a simple way to check if value exists in a field or not, FieldIndex(OSUser, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SupervisorNTName), if exists, it returns the load order, else returns 0. You may need to remove the domain from OSUser().&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 18:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-a-value-exists-in-a-column/m-p/1154965#M377022</guid>
      <dc:creator>hytown2000</dc:creator>
      <dc:date>2017-04-28T18:20:10Z</dc:date>
    </item>
  </channel>
</rss>

