<?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 List Box Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-Box-Expression/m-p/267819#M498312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have an n:n relation between your Contacts and Campaigns, right? I think you can't solve this like you intended using if() on a per record base (well, at least not easily).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this using a set expression to include Campaign1 and exclude Campaign2 related Contacts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(only({&amp;lt;Contact.FullName = p({&amp;lt;Campaign.Name={'$(Campaign1)'}&amp;gt;}) / p({&amp;lt;Campaign.Name={'$(Campaign2)'}&amp;gt;}) &amp;gt;} Contact.FullName), Contact.FullName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2011 13:32:13 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-09-16T13:32:13Z</dc:date>
    <item>
      <title>List Box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Expression/m-p/267818#M498311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have a problem with a document (the attached document). In the Layout, I want to have 3 List Boxes with expressions. At the first List Box, I want to see all Contacts that belongs to Campaign 1 (which is working good), at the second List Box I want to see all Contacts that belongs to Campaign 2 (which is also working good), and in the third List Box, I want to see all Contacts that belongs to the Campaign 1 and don't belong at Campaign 2 (which is not working) &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;. Any ideas what to do? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 13:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Expression/m-p/267818#M498311</guid>
      <dc:creator>eleni_theodorid</dc:creator>
      <dc:date>2011-09-16T13:05:12Z</dc:date>
    </item>
    <item>
      <title>List Box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Expression/m-p/267819#M498312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have an n:n relation between your Contacts and Campaigns, right? I think you can't solve this like you intended using if() on a per record base (well, at least not easily).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this using a set expression to include Campaign1 and exclude Campaign2 related Contacts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(only({&amp;lt;Contact.FullName = p({&amp;lt;Campaign.Name={'$(Campaign1)'}&amp;gt;}) / p({&amp;lt;Campaign.Name={'$(Campaign2)'}&amp;gt;}) &amp;gt;} Contact.FullName), Contact.FullName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 13:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Expression/m-p/267819#M498312</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-16T13:32:13Z</dc:date>
    </item>
  </channel>
</rss>

