<?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: List a field based on possible values in another column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905404#M314694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached, hope I got your requirements right...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2015 21:52:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-13T21:52:43Z</dc:date>
    <item>
      <title>List a field based on possible values in another column</title>
      <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905403#M314693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&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; I need helping doing something similar to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select name from table having count(dept) &amp;gt;1 and dept like '123' in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g. if I have the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name&amp;nbsp;&amp;nbsp; dept&amp;nbsp; status &lt;/P&gt;&lt;P&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123&amp;nbsp;&amp;nbsp;&amp;nbsp; active&lt;/P&gt;&lt;P&gt;b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123&amp;nbsp;&amp;nbsp;&amp;nbsp; active&lt;/P&gt;&lt;P&gt;b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 456&amp;nbsp;&amp;nbsp;&amp;nbsp; in-build&lt;/P&gt;&lt;P&gt;c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 456&amp;nbsp;&amp;nbsp;&amp;nbsp; active&lt;/P&gt;&lt;P&gt;c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 567&amp;nbsp;&amp;nbsp;&amp;nbsp; in-build&lt;/P&gt;&lt;P&gt;d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 967&amp;nbsp;&amp;nbsp;&amp;nbsp; in-build&lt;/P&gt;&lt;P&gt;d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 789&amp;nbsp;&amp;nbsp; retired&lt;/P&gt;&lt;P&gt;e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 456&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; active&lt;/P&gt;&lt;P&gt;I want to list all names that have a count(dept) &amp;gt;1 ( which in my case would be b ,c and d) and where one of the dept values for that name is 456.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my output in this case should be&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Basically I am trying to find duplicate rows and filter the duplicates based on certain values in the dept field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Samira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 21:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905403#M314693</guid>
      <dc:creator />
      <dc:date>2015-04-13T21:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: List a field based on possible values in another column</title>
      <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905404#M314694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached, hope I got your requirements right...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 21:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905404#M314694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-13T21:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: List a field based on possible values in another column</title>
      <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905405#M314695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be added in a listbox or set analysis &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=AGGR(only({$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;dept = {'456'}&amp;gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&amp;lt;rname={"=count(dept)&amp;gt;1"}&amp;gt;&lt;/P&gt;&lt;P&gt;} rname),rname)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 22:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905405#M314695</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-13T22:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: List a field based on possible values in another column</title>
      <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905406#M314696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Concat(If(Aggr(Count(dept),name)&amp;gt;1 And Aggr(Count({&amp;lt;dept = {'456'}&amp;gt;}name),name)=1 ,name),Chr(10))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 06:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905406#M314696</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-14T06:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: List a field based on possible values in another column</title>
      <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905407#M314697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to show in Text Box use below...&lt;/P&gt;&lt;P&gt;=CONCAT({&amp;lt;name = {"=COUNT({&amp;lt;name = p({&amp;lt;dept = {'456'}&amp;gt;}name)&amp;gt;}DISTINCT dept)&amp;gt;1"}&amp;gt;}DISTINCT name,'|')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to show in List Box use below as an Expression to create a list box.&lt;/P&gt;&lt;P&gt;=Aggr(Only({&amp;lt;name = {"=COUNT({&amp;lt;name = p({&amp;lt;dept = {'456'}&amp;gt;}name)&amp;gt;}DISTINCT dept)&amp;gt;1"}&amp;gt;}name),name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 06:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905407#M314697</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-14T06:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: List a field based on possible values in another column</title>
      <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905408#M314698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your response. The solution gives me the output I want. Is it possible to do same in a list box instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 19:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905408#M314698</guid>
      <dc:creator />
      <dc:date>2015-04-14T19:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: List a field based on possible values in another column</title>
      <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905409#M314699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anbu,&lt;/P&gt;&lt;P&gt;&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;nbsp; This is listing all the departments but not the names from the duplicate rows which match the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Samira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 19:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905409#M314699</guid>
      <dc:creator />
      <dc:date>2015-04-14T19:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: List a field based on possible values in another column</title>
      <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905410#M314700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manish,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I tried both your solutions. The Text Box solution is not displaying anything. The List Box solution is listing the departments and not the names from the duplicate rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 19:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905410#M314700</guid>
      <dc:creator />
      <dc:date>2015-04-14T19:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: List a field based on possible values in another column</title>
      <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905411#M314701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure.&amp;nbsp; See the attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 19:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905411#M314701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T19:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: List a field based on possible values in another column</title>
      <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905412#M314702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 06:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905412#M314702</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-15T06:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: List a field based on possible values in another column</title>
      <link>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905413#M314703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. That worked! Not sure what I was missing before. This is exactly what I was trying to get for the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 14:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-a-field-based-on-possible-values-in-another-column/m-p/905413#M314703</guid>
      <dc:creator />
      <dc:date>2015-04-15T14:18:40Z</dc:date>
    </item>
  </channel>
</rss>

