<?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 Multiple contacts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-contacts/m-p/683582#M1076463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I've imported a list of secondary schools and can get a list of all French teachers by selecting their job title, how do i get a list of schools that do not have a French teacher using the same query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is there a way to limit the number of French teachers at any one school (thrown out by the query) as many schools have several French teacher and I often only want 1 or 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Diane.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2014 15:39:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-30T15:39:50Z</dc:date>
    <item>
      <title>Multiple contacts</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-contacts/m-p/683582#M1076463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I've imported a list of secondary schools and can get a list of all French teachers by selecting their job title, how do i get a list of schools that do not have a French teacher using the same query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is there a way to limit the number of French teachers at any one school (thrown out by the query) as many schools have several French teacher and I often only want 1 or 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Diane.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-contacts/m-p/683582#M1076463</guid>
      <dc:creator />
      <dc:date>2014-07-30T15:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple contacts</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-contacts/m-p/683583#M1076464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diane,&lt;/P&gt;&lt;P&gt;If it is in the script, I would suggest use a flag for presence of French teacher.&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;tableA:&lt;/P&gt;&lt;P&gt;Load school_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; french_teacher_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; job_title,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isnull(french_teacher_name), 1, 0) as flag_no_french_teacher&lt;/P&gt;&lt;P&gt;from file.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use the flag on your UI to filter such schools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve the same in the UI, you can create a list box with the expression:&lt;/P&gt;&lt;P&gt;if(isnull(french_teacher_name),school_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for showing only a few names, it is easier to do so in a straight table on the UI. You will need to use dimension limit option (select show first two values). As for changes in the script, I can't think of any solution apart from using a group by&lt;/P&gt;&lt;P&gt;tableB:&lt;/P&gt;&lt;P&gt;load school_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxstring(french_teacher_name) as french_teacher_1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minstring(french_teacher_name) as french_teacher_2&lt;/P&gt;&lt;P&gt;resident tableA&lt;/P&gt;&lt;P&gt;group by school_name;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 16:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-contacts/m-p/683583#M1076464</guid>
      <dc:creator />
      <dc:date>2014-07-30T16:01:16Z</dc:date>
    </item>
  </channel>
</rss>

