<?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: Regarding p() and e() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Regarding-p-and-e/m-p/1011239#M343080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Koti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Qlikview help file:&lt;/P&gt;&lt;H3&gt;Set Modifiers with Implicit Field Value Definitions&lt;/H3&gt;&lt;P&gt;In the above examples, all field values have been explicitly defined or defined through searches. There is however an additional way to define a set of field values by the use of a nested set definition. &lt;/P&gt;&lt;P&gt;In such cases, the element functions P() and E() must be used, representing the element set of possible values and the excluded values of a field, respectively. Inside the brackets, it is possible to specify one set expression and one field, e.g. P({1} Customer). These functions cannot be used in other expressions:&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = P({1&amp;lt;Product={‘Shoe’}&amp;gt;} Customer)&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;returns the sales for current selection, but only those customers that ever have bought the product ‘Shoe’. The element function P( ) here returns a list of possible customers; those that are implied by the selection ‘Shoe’ in the field Product. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = P({1&amp;lt;Product={‘Shoe’}&amp;gt;})&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;same as above. If the field in the element function is omitted, the function will return the possible values of the field specified in the outer assignment. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = P({1&amp;lt;Product={‘Shoe’}&amp;gt;} Supplier)&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;returns the sales for current selection, but only those customers that ever have supplied the product ‘Shoe’. The element function P( ) here returns a list of possible suppliers; those that are implied by the selection ‘Shoe’ in the field Product. The list of suppliers is then used as a selection in the field Customer. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = E({1&amp;lt;Product={‘Shoe’}&amp;gt;})&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;returns the sales for current selection, but only those customers that never bought the product ‘Shoe’. The element function E( ) here returns the list of excluded customers; those that are excluded by the selection ‘Shoe’ in the field Product.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;P() or E() to is used to include/exclude the possible values of a field in set analysis expression.&amp;nbsp; Suppose &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; {$&amp;lt;Customer = P({1&amp;lt;Product={‘Shoe’}&amp;gt;} Supplier)&amp;gt;} Sales &lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;)&amp;nbsp;&amp;nbsp; - -This returns the sales of Customers who bought shoes.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; {$&amp;lt;Customer = E({1&amp;lt;Product={‘Shoe’}&amp;gt;} Supplier)&amp;gt;} Sales &lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;)&amp;nbsp;&amp;nbsp; - -This returns the sales of Customers who do not bought shoes.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Aug 2015 09:29:34 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-08-29T09:29:34Z</dc:date>
    <item>
      <title>Regarding p() and e()</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-p-and-e/m-p/1011236#M343077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;What are the possible values and exclude values?can anyone explain with sample examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-p-and-e/m-p/1011236#M343077</guid>
      <dc:creator>d_koti24</dc:creator>
      <dc:date>2015-08-27T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding p() and e()</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-p-and-e/m-p/1011237#M343078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read this blog post for understanding possible and excluded values: &lt;A href="https://community.qlik.com/qlik-blogpost/2907"&gt;Colors, States and State vectors&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-p-and-e/m-p/1011237#M343078</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-08-27T17:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding p() and e()</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-p-and-e/m-p/1011238#M343079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check these threads as well. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/501560"&gt;P() &amp;amp;amp; E()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 07:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-p-and-e/m-p/1011238#M343079</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-08-29T07:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding p() and e()</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-p-and-e/m-p/1011239#M343080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Koti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Qlikview help file:&lt;/P&gt;&lt;H3&gt;Set Modifiers with Implicit Field Value Definitions&lt;/H3&gt;&lt;P&gt;In the above examples, all field values have been explicitly defined or defined through searches. There is however an additional way to define a set of field values by the use of a nested set definition. &lt;/P&gt;&lt;P&gt;In such cases, the element functions P() and E() must be used, representing the element set of possible values and the excluded values of a field, respectively. Inside the brackets, it is possible to specify one set expression and one field, e.g. P({1} Customer). These functions cannot be used in other expressions:&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = P({1&amp;lt;Product={‘Shoe’}&amp;gt;} Customer)&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;returns the sales for current selection, but only those customers that ever have bought the product ‘Shoe’. The element function P( ) here returns a list of possible customers; those that are implied by the selection ‘Shoe’ in the field Product. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = P({1&amp;lt;Product={‘Shoe’}&amp;gt;})&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;same as above. If the field in the element function is omitted, the function will return the possible values of the field specified in the outer assignment. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = P({1&amp;lt;Product={‘Shoe’}&amp;gt;} Supplier)&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;returns the sales for current selection, but only those customers that ever have supplied the product ‘Shoe’. The element function P( ) here returns a list of possible suppliers; those that are implied by the selection ‘Shoe’ in the field Product. The list of suppliers is then used as a selection in the field Customer. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Customer = E({1&amp;lt;Product={‘Shoe’}&amp;gt;})&amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;returns the sales for current selection, but only those customers that never bought the product ‘Shoe’. The element function E( ) here returns the list of excluded customers; those that are excluded by the selection ‘Shoe’ in the field Product.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;P() or E() to is used to include/exclude the possible values of a field in set analysis expression.&amp;nbsp; Suppose &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; {$&amp;lt;Customer = P({1&amp;lt;Product={‘Shoe’}&amp;gt;} Supplier)&amp;gt;} Sales &lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;)&amp;nbsp;&amp;nbsp; - -This returns the sales of Customers who bought shoes.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; {$&amp;lt;Customer = E({1&amp;lt;Product={‘Shoe’}&amp;gt;} Supplier)&amp;gt;} Sales &lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;)&amp;nbsp;&amp;nbsp; - -This returns the sales of Customers who do not bought shoes.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 09:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-p-and-e/m-p/1011239#M343080</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-29T09:29:34Z</dc:date>
    </item>
  </channel>
</rss>

