<?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: Determine if a list of available values in field1 is in field2. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Determine-if-a-list-of-available-values-in-field1-is-in-field2/m-p/1155736#M912488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try as expression in a text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;SalesTeam = p(ProductTeam)&amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2016 22:00:15 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-26T22:00:15Z</dc:date>
    <item>
      <title>Determine if a list of available values in field1 is in field2.</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-if-a-list-of-available-values-in-field1-is-in-field2/m-p/1155735#M912487</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 trying to create a calculation that sums all the corresponding records from one table based on the matching values between the summed table and another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, in the attached test file I have a SalesTeam and ProductTeam table. SalesTeam and ProductTeam have overlapping team name values but the columns are intentionally named differently (this is required for my data model for security reasons). If the available SalesTeam team name values exist in the available ProductTeam team name values, I want to show a sum of the sales amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. If no Product Teams are selected, the total should show 500 + 1000 + 400 = 1900&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Team1 is selected, the total should show 500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Team1 and Team2 is selected, the total should show 500 + 1000 = 1500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to do this with an If statement like: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Match(SalesTeam, Concat(ProductTeam, ',')), Sum(Amount))&lt;/P&gt;&lt;P&gt;as well as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(SalesTeam=ProductTeam, Sum(Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you'll notice that these only work when there are single values selected for ProductTeam and SalesTeam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make these expressions work if there are one or more values selected in ProductTeam and none selected for SalesTeam?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-if-a-list-of-available-values-in-field1-is-in-field2/m-p/1155735#M912487</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if a list of available values in field1 is in field2.</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-if-a-list-of-available-values-in-field1-is-in-field2/m-p/1155736#M912488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try as expression in a text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;SalesTeam = p(ProductTeam)&amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 22:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-if-a-list-of-available-values-in-field1-is-in-field2/m-p/1155736#M912488</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-26T22:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if a list of available values in field1 is in field2.</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-if-a-list-of-available-values-in-field1-is-in-field2/m-p/1155737#M912489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's exactly what I needed. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 22:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-if-a-list-of-available-values-in-field1-is-in-field2/m-p/1155737#M912489</guid>
      <dc:creator />
      <dc:date>2016-05-26T22:36:12Z</dc:date>
    </item>
  </channel>
</rss>

