<?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 Count Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413772#M94893</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to count distinct DocumentLocation based on a set of requirements. This is what I have so far.&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;LocationCode = {"0000","0004","0003"},&lt;BR /&gt;CreatedTime = {"&amp;lt;10:00:00 AM", "&amp;gt;3:00:00 PM"},&lt;BR /&gt;[Time Shipped] = {"&amp;lt;10:00:00 AM"},&lt;BR /&gt;[Date Shipped] = DocumentDate&amp;gt;} DISTINCT DocumentLocation)&lt;/P&gt;
&lt;P&gt;If I take out Date Shipped = DocumentDate, it will work. So, I know that is the issue. I have been reading that you can compare 1 dimension to another in a set analysis. Is this still the case or am I doing something wrong?&lt;/P&gt;
&lt;P&gt;Any help please.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 01:39:38 GMT</pubDate>
    <dc:creator>Diinkant</dc:creator>
    <dc:date>2024-02-02T01:39:38Z</dc:date>
    <item>
      <title>Count Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413772#M94893</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to count distinct DocumentLocation based on a set of requirements. This is what I have so far.&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;LocationCode = {"0000","0004","0003"},&lt;BR /&gt;CreatedTime = {"&amp;lt;10:00:00 AM", "&amp;gt;3:00:00 PM"},&lt;BR /&gt;[Time Shipped] = {"&amp;lt;10:00:00 AM"},&lt;BR /&gt;[Date Shipped] = DocumentDate&amp;gt;} DISTINCT DocumentLocation)&lt;/P&gt;
&lt;P&gt;If I take out Date Shipped = DocumentDate, it will work. So, I know that is the issue. I have been reading that you can compare 1 dimension to another in a set analysis. Is this still the case or am I doing something wrong?&lt;/P&gt;
&lt;P&gt;Any help please.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 01:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413772#M94893</guid>
      <dc:creator>Diinkant</dc:creator>
      <dc:date>2024-02-02T01:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413780#M94894</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Count({&amp;lt;LocationCode = {"0000","0004","0003"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CreatedTime = {"&amp;lt;10:00:00 AM", "&amp;gt;3:00:00 PM"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Time Shipped] = {"&amp;lt;10:00:00 AM"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DocumentLocation=&lt;STRONG&gt;{"=[Date Shipped]= DocumentDate"}&lt;/STRONG&gt;&amp;gt;} DISTINCT DocumentLocation)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 03:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413780#M94894</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2024-02-02T03:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413782#M94895</link>
      <description>&lt;P&gt;if both the fields are in the same table, you can create a flag in the script:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If([Date Shipped]= DocumentDate&lt;/STRONG&gt;&lt;STRONG&gt;, 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then this&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Count({&amp;lt;LocationCode = {"0000","0004","0003"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CreatedTime = {"&amp;lt;10:00:00 AM", "&amp;gt;3:00:00 PM"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Time Shipped] = {"&amp;lt;10:00:00 AM"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;Flag={1}&lt;/STRONG&gt;&amp;gt;} DISTINCT DocumentLocation)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 03:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413782#M94895</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2024-02-02T03:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413785#M94896</link>
      <description>&lt;P&gt;I have joined the data into the same table, so i will try the second option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the first option and that seemed to pull numbers through. Unsure if accurate but will check. Is there any reason why you used DocumentLocation =?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 03:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413785#M94896</guid>
      <dc:creator>Diinkant</dc:creator>
      <dc:date>2024-02-02T03:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413789#M94897</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Your count depends on DocumentLocation, so &lt;STRONG&gt;DocumentLocation={"=[Date Shipped]= DocumentDate"}&lt;/STRONG&gt; is used&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp;&lt;BR /&gt;If you want to compare field values on a per record base, set analysis is not the way to go, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;use the below one script level&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=If([Date Shipped]= DocumentDate&lt;/STRONG&gt;&lt;STRONG&gt;, 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 03:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413789#M94897</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2024-02-02T03:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413791#M94898</link>
      <description>&lt;P&gt;Mate, you're an absolute legend! The first one works, and I had the second one there to check the data.&lt;/P&gt;
&lt;P&gt;Thanks mate, I really appreciate it!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 03:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Set-Analysis/m-p/2413791#M94898</guid>
      <dc:creator>Diinkant</dc:creator>
      <dc:date>2024-02-02T03:29:05Z</dc:date>
    </item>
  </channel>
</rss>

