<?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: Filtering AND + OR (and Exclued Count) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-AND-OR-and-Exclued-Count/m-p/948411#M949325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure where you are trying to display this (In the pivot or text box), but a text box solution is may be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109284_Capture.PNG" style="height: 209px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Expression for Name&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat(DISTINCT If(Aggr(Count(TOTAL &amp;lt;Customers&amp;gt;Customers), Initiative, Customers) &amp;lt;&amp;gt; Aggr(Count(DISTINCT Customers), Initiative, Customers), Customers), ', ')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Count&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT If(Aggr(Count(TOTAL &amp;lt;Customers&amp;gt;Customers), Initiative, Customers) &amp;lt;&amp;gt; Aggr(Count(DISTINCT Customers), Initiative, Customers), Customers))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2015 11:51:29 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-17T11:51:29Z</dc:date>
    <item>
      <title>Filtering AND + OR (and Exclued Count)</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-AND-OR-and-Exclued-Count/m-p/948410#M949324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community!&lt;/P&gt;&lt;P&gt;Still here with a new question; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am following a new project with &lt;EM&gt;huge&lt;/EM&gt; data inside.&lt;/P&gt;&lt;P&gt;I tried to create an easy sample (herewith attached) in order to simplify request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Situation: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Pivot table showing several dimensions as many expressions for calculating different things, (ie %, total sales, current and previous year etc); a separate Tab is showing "Initiative" and "Customers" enlisted in Initiative offered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt; need to find the right expression to pick out Customers whom joined more then one Initiative at a time (and also the alternative count).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in the sample, if you select Initiative n 4, InitiativeName "E" and "F" are the only available; Total Customers joined are 6;&lt;/P&gt;&lt;P&gt;Then if I get specified the Name, I will have 4 Customers for "E" and 4 Customers for "F". Two of them joined both Initiative. &lt;/P&gt;&lt;P&gt;The goal is to know how many customers joined both Initiative (and also identify them). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Take notice of:&lt;/EM&gt; In the sample could appaer useless cause of few customers and numbers related...in the real project every initiative have many more InitiativeName, and customers are &lt;EM&gt;thousands&lt;/EM&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried playing with&lt;SPAN style="color: #0000ff;"&gt; P&lt;/SPAN&gt;ossible and &lt;SPAN style="color: #0000ff;"&gt;E&lt;/SPAN&gt;xcluded count in the expressions; what I've reached is to define which customers joined one Initiative and whic not, (or which joined the other). Not able to define which joined both. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help and suggestions!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #c0c0c0;"&gt;Alex&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 11:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-AND-OR-and-Exclued-Count/m-p/948410#M949324</guid>
      <dc:creator>marleygt</dc:creator>
      <dc:date>2015-12-17T11:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering AND + OR (and Exclued Count)</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-AND-OR-and-Exclued-Count/m-p/948411#M949325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure where you are trying to display this (In the pivot or text box), but a text box solution is may be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109284_Capture.PNG" style="height: 209px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Expression for Name&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat(DISTINCT If(Aggr(Count(TOTAL &amp;lt;Customers&amp;gt;Customers), Initiative, Customers) &amp;lt;&amp;gt; Aggr(Count(DISTINCT Customers), Initiative, Customers), Customers), ', ')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Count&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT If(Aggr(Count(TOTAL &amp;lt;Customers&amp;gt;Customers), Initiative, Customers) &amp;lt;&amp;gt; Aggr(Count(DISTINCT Customers), Initiative, Customers), Customers))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 11:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-AND-OR-and-Exclued-Count/m-p/948411#M949325</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-17T11:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering AND + OR (and Exclued Count)</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-AND-OR-and-Exclued-Count/m-p/948412#M949326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;! How are you? &lt;/P&gt;&lt;P&gt;Thanks for fast reply.&lt;/P&gt;&lt;P&gt;Well, to be honest, your solution seems ok in the sample, but is not what I am lo&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;oking for: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For what concern the "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Expression for Name" - it's ok but is not showing correctly;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If I select Initiative n4, it shows "Bob" and "Martha" that are the 2 customers who both joined the initiative, but if I select "F" or "E" (corresponding to Initiative 4), it shows me only one of them, while should still give the info about the 2 customers. &lt;EM&gt;(the purpose is filtering customers that only joined more then one initiativeName - subordinated to the Initiative; ---&amp;gt; I don't care if initiative 1 -2 - 3 ...have same customers, but if initiative 1 have 2 or more initiativeName which have more customers, in this case I need to know who and how many they are&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other problem is converting the expressions suggested, seems they are not able to filter in the project, probably due to the complexity of structure: it give me no result at all (with no errors). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="zero.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109300_zero.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Name.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/109307_Name.JPG" style="height: 110px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="count.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/109308_count.JPG" style="height: 71px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still trying to solve the right expression, but at the moment no chance....&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 14:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-AND-OR-and-Exclued-Count/m-p/948412#M949326</guid>
      <dc:creator>marleygt</dc:creator>
      <dc:date>2015-12-17T14:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering AND + OR (and Exclued Count)</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-AND-OR-and-Exclued-Count/m-p/948413#M949327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here I am,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993366;"&gt;Happy&lt;/SPAN&gt; &lt;SPAN style="color: #808000;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Y&lt;/SPAN&gt;&lt;SPAN style="color: #339966;"&gt;e&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="color: #ff99cc;"&gt;r&lt;/SPAN&gt; - in the meanwhile...&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming back to the post request, I found a very good and easy solution: the And Mode.&lt;/P&gt;&lt;P&gt;It was something I've read in the manual but due to my inexperience I didn't thought could be the right way to find the "and" mode.&lt;/P&gt;&lt;P&gt;So I've read some useful post about&lt;EM&gt; andmode&lt;/EM&gt; and I've reached my desired goal.&lt;/P&gt;&lt;P&gt;Just want to share with you (and in order to close the post).&lt;/P&gt;&lt;P&gt;Thank you for help and suggestion!&lt;/P&gt;&lt;P&gt;See ya in the next post...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #999999;"&gt;Alex&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 09:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-AND-OR-and-Exclued-Count/m-p/948413#M949327</guid>
      <dc:creator>marleygt</dc:creator>
      <dc:date>2016-01-15T09:00:54Z</dc:date>
    </item>
  </channel>
</rss>

