<?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: Multiple statements (AND) in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-statements-AND-in-set-analysis/m-p/717449#M257871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Maybe this:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({$&amp;lt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UniqueKey = {"=[Role Geographic Unit]=GeographicUnitDesc&amp;nbsp; and&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Role Country]=CountryNm and&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Role Metro City]=MetroCityDesc and&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Role Level From Group]=HRResourceLevelGroup&amp;nbsp; and&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Role Career Track]=ResourceCareerTrack&amp;nbsp; and&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Role Talent Segment]=ResourceTalentSegment" }&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DISTINCT&lt;/SPAN&gt; PeopleKey)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jul 2014 17:52:01 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-07-04T17:52:01Z</dc:date>
    <item>
      <title>Multiple statements (AND) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-statements-AND-in-set-analysis/m-p/717448#M257870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to chain the following together...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(DISTINCT{$&amp;lt;&lt;/P&gt;&lt;P&gt;UniqueKey = {"=([Role Geographic Unit]=GeographicUnitDesc)" },&lt;/P&gt;&lt;P&gt;UniqueKey = {"=([Role Country]=CountryNm)" },&lt;/P&gt;&lt;P&gt;UniqueKey = {"=([Role Metro City]=MetroCityDesc)" },&lt;/P&gt;&lt;P&gt;UniqueKey = {"=([Role Level From Group]=HRResourceLevelGroup)" },&lt;/P&gt;&lt;P&gt;UniqueKey = {"=([Role Career Track]=ResourceCareerTrack)" },&lt;/P&gt;&lt;P&gt;UniqueKey = {"=([Role Talent Segment]=ResourceTalentSegment)" }&lt;/P&gt;&lt;P&gt;&amp;gt;}PeopleKey)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UniqueKey was generated using AutoNumber().&amp;nbsp; This would be a field to field comparison across 10 fields so each one is a field and not a static value.&amp;nbsp; The total always evaluates to the last statement though (UniqueKey = {"=([Role Talent Segment]=ResourceTalentSegment)" }) and I need it to evaluate across all 5.&amp;nbsp; In other words, give me the number of records where FieldA=Field1 AND FieldB=Field2 AND FieldC=Field3, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 17:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-statements-AND-in-set-analysis/m-p/717448#M257870</guid>
      <dc:creator />
      <dc:date>2014-07-04T17:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple statements (AND) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-statements-AND-in-set-analysis/m-p/717449#M257871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Maybe this:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({$&amp;lt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UniqueKey = {"=[Role Geographic Unit]=GeographicUnitDesc&amp;nbsp; and&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Role Country]=CountryNm and&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Role Metro City]=MetroCityDesc and&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Role Level From Group]=HRResourceLevelGroup&amp;nbsp; and&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Role Career Track]=ResourceCareerTrack&amp;nbsp; and&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Role Talent Segment]=ResourceTalentSegment" }&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DISTINCT&lt;/SPAN&gt; PeopleKey)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 17:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-statements-AND-in-set-analysis/m-p/717449#M257871</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-04T17:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple statements (AND) in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-statements-AND-in-set-analysis/m-p/717450#M257872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The correct approach is the following ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count(DISTINCT{$&amp;lt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UniqueKey1 = {"=([Role Geographic Unit]=GeographicUnitDesc)" },&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UniqueKey2 = {"=([Role Country]=CountryNm)" },&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UniqueKey3 = {"=([Role Metro City]=MetroCityDesc)" },&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UniqueKey4 = {"=([Role Level From Group]=HRResourceLevelGroup)" },&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UniqueKey5 = {"=([Role Career Track]=ResourceCareerTrack)" },&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UniqueKey6 = {"=([Role Talent Segment]=ResourceTalentSegment)" }&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}PeopleKey)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Can't use the same field (UniqueKey) for the boolean value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 18:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-statements-AND-in-set-analysis/m-p/717450#M257872</guid>
      <dc:creator />
      <dc:date>2014-07-07T18:29:20Z</dc:date>
    </item>
  </channel>
</rss>

