<?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: Set Modifier element list logical aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182412#M887719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option could also be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count({&amp;lt;StoreID = {"=Count(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: black;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: maroon;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: black;"&gt; ={'A',&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: black;"&gt;’B’}&amp;gt;}DISTINCT Product)=2"}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &amp;gt;} DISTINCT StoreID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2016 22:05:36 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-09-13T22:05:36Z</dc:date>
    <item>
      <title>Set Modifier element list logical aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182408#M887715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;I have the following challenge:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;The expression bellow will count distinct InvoiceIDs that include, either product A &lt;STRONG style="text-decoration: underline;"&gt;OR&lt;/STRONG&gt; Product B.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt; margin-bottom: .0001pt; text-indent: 36.0pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ={'A',’B’}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;InvoiceID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;If I want to know how many stores have sold Product A or Product B, I will have a similar expression: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt; margin-bottom: .0001pt; text-indent: 36.0pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ={'A',’B’}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;StoreID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;What is the simpler and most performing way to know how many stores have sold &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Product A &lt;STRONG style="text-decoration: underline;"&gt;AND&lt;/STRONG&gt; Product B simultaneously?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Pedro Freire&lt;/SPAN&gt;&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/Set-Modifier-element-list-logical-aggregation/m-p/1182408#M887715</guid>
      <dc:creator>pedro_freire</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Modifier element list logical aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182409#M887716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;Product ={'A'}&amp;gt;*&amp;lt;Product = {'B’}&amp;gt;} StoreID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 15:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182409#M887716</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-13T15:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Modifier element list logical aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182410#M887717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count(distinct if(Product = 'A' AND Product = 'B'),([StoreID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR try creating a new calculated dimension "Both" determining if a store sold both product A and B and then try the following&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count(distinct if(Product = 'Both'),([StoreID]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hope this answers your question!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 21:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182410#M887717</guid>
      <dc:creator />
      <dc:date>2016-09-13T21:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Modifier element list logical aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182411#M887718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should only need to calculate the intersection on StoreID field values, not for the complete record set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;StoreID = p(&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: black;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: maroon;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: black;"&gt; ={'A'&amp;gt;}&lt;/SPAN&gt;)*p(&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: black;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: maroon;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: black;"&gt; ={’B’}&amp;gt;}&lt;/SPAN&gt;) &amp;gt;} DISTINCT StoreID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or maybe create a data model that would support a list box for a Product field in AND-Mode and then use this in your set analysis:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qliktips.com/2011/06/and-mode-in-set-analysis.html" title="http://www.qliktips.com/2011/06/and-mode-in-set-analysis.html"&gt;Qlik Tips: AND Mode in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 22:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182411#M887718</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-13T22:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Modifier element list logical aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182412#M887719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option could also be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count({&amp;lt;StoreID = {"=Count(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: black;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: maroon;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: black;"&gt; ={'A',&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; text-indent: 48px; color: black;"&gt;’B’}&amp;gt;}DISTINCT Product)=2"}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &amp;gt;} DISTINCT StoreID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 22:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182412#M887719</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-13T22:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Modifier element list logical aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182413#M887720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan,&lt;/P&gt;&lt;P&gt;I guess this might be a litle bold on my part, but &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt; mention you are my only hope! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I wonder if I can dare you for another challange?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1237504"&gt;Evaluate Chart Expression at line level - Part3&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pedro Freire&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 12:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Modifier-element-list-logical-aggregation/m-p/1182413#M887720</guid>
      <dc:creator>pedro_freire</dc:creator>
      <dc:date>2017-03-27T12:56:26Z</dc:date>
    </item>
  </channel>
</rss>

