<?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: Checking if value exists among possible values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/1685379#M450338</link>
    <description>&lt;P&gt;This solved one issue for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 13:52:53 GMT</pubDate>
    <dc:creator>baliyan_vinay</dc:creator>
    <dc:date>2020-03-17T13:52:53Z</dc:date>
    <item>
      <title>Checking if value exists among possible values</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396363#M147790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #575757; background-color: #ffffff;"&gt;Hey guys. I've got a chart I'm having trouble with. So I have a table box that displays a number of records. There's one field that has a many to one relationship to each row in the table. So any record could have multiple possible values for this field. Let's say the record is Eric, and in the field HairColor, are the possible values Brown and Gray. I want my table chart to display the record Eric if Brown is one of the possible selected values for HairColor. So I could create a calculated dimension like this:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #575757; background-color: #ffffff;"&gt;=if(Match(HairColor,'Brown'), true(),false())&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #575757; background-color: #ffffff;"&gt;What this does, however, is create two rows for Eric, one in which the calculated dimension is true (where HairColor=Brown), and one where it is false (where HairColor=Gray). This isn't what I want. I want one row for Eric, that displays True, since Brown is one of the possible values.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #575757; background-color: #ffffff;"&gt;Any ideas?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #575757; background-color: #ffffff;"&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 23:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396363#M147790</guid>
      <dc:creator />
      <dc:date>2013-02-28T23:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if value exists among possible values</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396364#M147791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could either setup a calculated dimension like this:&lt;/P&gt;&lt;P&gt;=if(Color='Brown',Color)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then specify to Supress when the value of the dimension Is Null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use Set Analysis in whatever expressions are in your table to sum or count or whatever and filter where only Brown hair color is aggregated or shown.. for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Color={'Brown'}&amp;gt;} distinct Name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 02:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396364#M147791</guid>
      <dc:creator />
      <dc:date>2013-03-01T02:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if value exists among possible values</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396365#M147792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm.. I don't think my original example was accurate for what I'm trying to do. Let me try a slightly different one.&lt;/P&gt;&lt;P&gt;Let's say I have a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[Person, HairColor&lt;/P&gt;&lt;P&gt;Eric, Brown&lt;/P&gt;&lt;P&gt;Eric, Gray&lt;/P&gt;&lt;P&gt;Dad, Gray&lt;/P&gt;&lt;P&gt;Sister, Brown&lt;/P&gt;&lt;P&gt;Mom, Gray&lt;/P&gt;&lt;P&gt;Mom, Blonde];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in my chart, I want to exclude any Person that has Gray hair. So the only row that should appear would be for Sister. Eric, Dad, and Mom should not appear, since Gray is a possible value for them.&lt;/P&gt;&lt;P&gt;Thanks again for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 18:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396365#M147792</guid>
      <dc:creator />
      <dc:date>2013-03-01T18:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if value exists among possible values</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396366#M147793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a set expression with the e() function, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count( &lt;STRONG&gt;{&amp;lt;Person = e({&amp;lt;HairColor ={Gray}&amp;gt;} ) &amp;gt;}&lt;/STRONG&gt;&amp;nbsp; Person)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(e.g. in a chart with dimension Person).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 18:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396366#M147793</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-03-01T18:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if value exists among possible values</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396367#M147794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Table:&lt;/P&gt;&lt;P&gt;Dimension: Person&lt;/P&gt;&lt;P&gt;Expression: if(aggr(concat(HairColor, ','), Person) like 'Gray', NULL(), HairColor)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 18:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396367#M147794</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2013-03-01T18:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if value exists among possible values</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396368#M147795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so, I tried that and it seemed to be on the right track, but it doesn't actually remove the row, it just displays the count as 0 for the rows that I'd like to remove. I tried checking the Supress Zero Values checkbox, but that didn't do anything. Is there a way to make it remove the row if the count is zero?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 19:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396368#M147795</guid>
      <dc:creator />
      <dc:date>2013-03-01T19:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if value exists among possible values</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396369#M147796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a straight table, it should do this by default settings (presentation tab in properties, suppress zero values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ah, this only works, if all expressions return zero for that line. So, if you have multiple expressions, use the above expression labelled Filter, then for all other expressions, write something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if( "Filter", YOUREXPRESSION , 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 19:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396369#M147796</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-03-01T19:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if value exists among possible values</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396370#M147797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh so Supress Zero Values only works when all expressions for that row are zero? I didn't know that.&lt;/P&gt;&lt;P&gt;Very strange solution, but it appears to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 19:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396370#M147797</guid>
      <dc:creator />
      <dc:date>2013-03-01T19:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if value exists among possible values</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396371#M147798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option, if you want to check if a value is selected or possible, is to use the intersection in set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;table:&lt;/P&gt;
&lt;P&gt;Load * inline [&lt;/P&gt;
&lt;P&gt;Values&lt;/P&gt;
&lt;P&gt;a&lt;/P&gt;
&lt;P&gt;b&lt;/P&gt;
&lt;P&gt;c&lt;/P&gt;
&lt;P&gt;d&lt;/P&gt;
&lt;P&gt;e&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then, intersect current selection with the value we want to test:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count(distinct {$ * $&amp;lt;Values={'a'}&amp;gt;} Values)&lt;/SPAN&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find an example attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 12:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/396371#M147798</guid>
      <dc:creator>anguila</dc:creator>
      <dc:date>2016-12-16T12:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if value exists among possible values</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/1685379#M450338</link>
      <description>&lt;P&gt;This solved one issue for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 13:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/1685379#M450338</guid>
      <dc:creator>baliyan_vinay</dc:creator>
      <dc:date>2020-03-17T13:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Checking if value exists among possible values</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/1739060#M452824</link>
      <description>&lt;P&gt;Bliliant:&lt;/P&gt;&lt;P&gt;count(distinct {$ * $&amp;lt;Values={'a'}&amp;gt;} Values)&lt;/P&gt;&lt;P&gt;Anguila&amp;nbsp;thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 08:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-if-value-exists-among-possible-values/m-p/1739060#M452824</guid>
      <dc:creator>stantrolav</dc:creator>
      <dc:date>2020-08-27T08:34:04Z</dc:date>
    </item>
  </channel>
</rss>

