<?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 P() and E() and/or in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-P-and-E-and-or/m-p/1659861#M448660</link>
    <description>&lt;P&gt;You are right... * is AND and + is OR. So, you can do OR with a +.... and in the INTERSECTION expression that you have right now... you need to have an account pass all the conditions before it can show up...&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2019 16:14:35 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-12-20T16:14:35Z</dc:date>
    <item>
      <title>Multiple P() and E() and/or</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-P-and-E-and-or/m-p/1658617#M448533</link>
      <description>&lt;P&gt;I am trying to accomplish the following:&amp;nbsp; count(AccountId) with Have/Have Not set analysis based on products.&lt;/P&gt;&lt;P&gt;The accountid can live in two separate tables, an Opportunity and Order table.&amp;nbsp; Within the two tables are products; Opp.Product and Order.Product.&amp;nbsp; The values of the Product fields are textually the same and are sent to separate variables, vSoldHave, vSoldHaveNot, vProposedHave, and vProposedHaveNot using getfieldselections()&lt;/P&gt;&lt;P&gt;The user can select (from a list box) a list of products where they HAVE or HAVE NOT the products listed in their respective tables&lt;/P&gt;&lt;P&gt;So, they could select HAVE Product 'A', 'B', and 'C' in the Opportunity Table, HAVE product 'E' in the Order Table, but NOT have Product 'D' in Opportunity or Order table; and the chart will populate with only the account GUID's that match that criteria.&amp;nbsp; Or any combination, Have in Order, but not have in Order, Have in Opportunity, but not have in Order, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-P-and-E-and-or/m-p/1658617#M448533</guid>
      <dc:creator>jasonrimkus</dc:creator>
      <dc:date>2024-11-16T19:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple P() and E() and/or</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-P-and-E-and-or/m-p/1659789#M448651</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;any ideas??&lt;/P&gt;&lt;P&gt;I have the expressions working by only using a set of 2 p() and e()'s, but i'm looking to consolidate them all into 1 expression, if possible..&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;2 Excludes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;Opp.Service = ,&lt;BR /&gt;Order.Service = ,&lt;BR /&gt;Account.accountid =&lt;BR /&gt;E({&amp;lt;&lt;BR /&gt;Order.Service = {"$(vSoldHaveNot)"}&lt;BR /&gt;, OrderProductsold = {'1'}&lt;BR /&gt;, Order.HDRCancelFlag = {'0'}&lt;BR /&gt;, OrderProduct.CancelFlag = {'0'}&lt;BR /&gt;, OrderCompleteDate = {"&amp;gt;=$(=AddYears(Today(), vHaveNotYear))"}&lt;BR /&gt;&amp;gt;})&lt;BR /&gt;* E({&amp;lt;&lt;BR /&gt;Opp.Service = {"$(vProposedHaveNot)"}&lt;BR /&gt;, opportunity.createdon_Date = {"&amp;gt;=$(=AddYears(Today(), vHaveNotYear))"}&lt;BR /&gt;&amp;gt;})&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;Distinct Account.accountid)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2 includes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;Opp.Service = ,&lt;BR /&gt;Order.Service = ,&lt;BR /&gt;Account.accountid =&lt;BR /&gt;P({&amp;lt;&lt;BR /&gt;Order.Service = {"$(vSoldHave)"}&lt;BR /&gt;, OrderProduct.sold = {'1'}&lt;BR /&gt;, Order.HDRCancelFlag = {'0'}&lt;BR /&gt;, OrderProduct.CancelFlag = {'0'}&lt;BR /&gt;, OrderCompleteDate = {"&amp;gt;=$(=AddYears(Today(), vHaveYear))"}&lt;BR /&gt;&amp;gt;})&lt;BR /&gt;* P({&amp;lt;&lt;BR /&gt;Opp.Service = {"$(vProposedHave)"}&lt;BR /&gt;, opportunity.createdon_Date = {"&amp;gt;=$(=AddYears(Today(), vHaveYear))"}&lt;BR /&gt;&lt;BR /&gt;&amp;gt;})&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;Distinct Account.accountid)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1 P() and 1 E()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;Opp.Service = ,&lt;BR /&gt;Order.Service = ,&lt;BR /&gt;Account.accountid =&lt;BR /&gt;E({&amp;lt;&lt;BR /&gt;Order.Service = {"$(vSoldHaveNot)"}&lt;BR /&gt;, OrderProduct.davey_sold = {'1'}&lt;BR /&gt;, Order.HDRCancelFlag = {'0'}&lt;BR /&gt;, OrderProduct.CancelFlag = {'0'}&lt;BR /&gt;, OrderCompleteDate = {"&amp;gt;=$(=AddYears(Today(), vHaveNotYear))"}&lt;BR /&gt;&amp;gt;})&lt;BR /&gt;* P({&amp;lt;&lt;BR /&gt;Opp.Service = {"$(vSoldHave)"}&lt;BR /&gt;, OrderProduct.davey_sold = {'1'}&lt;BR /&gt;, Order.HDRCancelFlag = {'0'}&lt;BR /&gt;, OrderProduct.CancelFlag = {'0'}&lt;BR /&gt;, OrderCompleteDate = {"&amp;gt;=$(=AddYears(Today(), vHaveYear))"}&lt;BR /&gt;&amp;gt;})&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;Distinct Account.accountid)&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 13:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-P-and-E-and-or/m-p/1659789#M448651</guid>
      <dc:creator>jasonrimkus</dc:creator>
      <dc:date>2019-12-20T13:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple P() and E() and/or</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-P-and-E-and-or/m-p/1659790#M448652</link>
      <description>&lt;P&gt;I am not entirely sure I understand this without seeing an example, but try this may be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count({&amp;lt;Opp.Service, Order.Service, 
Account.accountid =

E({&amp;lt;Order.Service = {"$(vSoldHaveNot)"}, OrderProductsold = {'1'}, Order.HDRCancelFlag = {'0'}, OrderProduct.CancelFlag = {'0'}, OrderCompleteDate = {"&amp;gt;=$(=AddYears(Today(), vHaveNotYear))"}&amp;gt;})

*

E({&amp;lt;Opp.Service = {"$(vProposedHaveNot)"}, opportunity.createdon_Date = {"&amp;gt;=$(=AddYears(Today(), vHaveNotYear))"}&amp;gt;})

*

P({&amp;lt;Order.Service = {"$(vSoldHave)"}, OrderProduct.sold = {'1'}, Order.HDRCancelFlag = {'0'}, OrderProduct.CancelFlag = {'0'}, OrderCompleteDate = {"&amp;gt;=$(=AddYears(Today(), vHaveYear))"}&amp;gt;})

*

P({&amp;lt;Opp.Service = {"$(vProposedHave)"}, opportunity.createdon_Date = {"&amp;gt;=$(=AddYears(Today(), vHaveYear))"}&amp;gt;})

&amp;gt;} Distinct Account.accountid)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Dec 2019 13:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-P-and-E-and-or/m-p/1659790#M448652</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-20T13:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple P() and E() and/or</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-P-and-E-and-or/m-p/1659852#M448657</link>
      <description>&lt;P&gt;Thanks Sunny for the quick reply.&amp;nbsp; Sorry i tagged you on this post, but you always seem to pull stuff out that i'd never think of.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, this did not work.&amp;nbsp; When in pairs, it works just fine, but adding an additional pair nothing popped.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this is now more of a syntaxical question.&amp;nbsp; Can you use multiple P() and E()s.&amp;nbsp; And does each P() and E() NEED to return the list of AccountIds in order for it to run?&amp;nbsp; If you can use more than 2 P() and E()s; is there someway to do OR (+?) rather than the * (which i'm assuming represent AND)?&amp;nbsp; I cant find any documentation about it.&lt;/P&gt;&lt;P&gt;I ran the expression through, and it didnt return the expected result, making the proper selections so it would pop.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-P-and-E-and-or/m-p/1659852#M448657</guid>
      <dc:creator>jasonrimkus</dc:creator>
      <dc:date>2019-12-20T15:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple P() and E() and/or</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-P-and-E-and-or/m-p/1659861#M448660</link>
      <description>&lt;P&gt;You are right... * is AND and + is OR. So, you can do OR with a +.... and in the INTERSECTION expression that you have right now... you need to have an account pass all the conditions before it can show up...&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 16:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-P-and-E-and-or/m-p/1659861#M448660</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-20T16:14:35Z</dc:date>
    </item>
  </channel>
</rss>

