<?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: Double P() Operator in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248793#M395545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My structure for this scenario is kinda simple: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables Products and Ingredients that are connected with a perfect key composed of PLANT and Batch Number. For every Product i have all the ingredients, intermediates and bulks used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the table Products i also have all the Intermediates and bulks since they are created in a plant with a unique batch number: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want to reach with this double P operator is simply see Three levels of depth in the production for a final Product&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For Example Product A is composed by IA, IB and IC. -&amp;gt; No Set analysis needed everything is done by selection &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IC is also a product and is composed by IIA, IIB and IIC -&amp;gt; First Level P operator i get the IC using &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ITEM_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = P(INGREDIENT.ITEM_NO) and everything works fine &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;IIB is also a product and is composed by IIIA, IIIB, IIIC -&amp;gt; Second level P operator i can't get the desired value and when i try the options you kindly described i get a first level output or a zero level output (selection i made).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every try i just did is always returning the selected ITEM_NO when used in the expression. Looks like when combining the 2 P() operators is not possibile to search the values correctly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 08:49:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-12-13T08:49:21Z</dc:date>
    <item>
      <title>Double P() Operator</title>
      <link>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248788#M395540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used with great success the P() operator over time to present information's about ingredients based on a product of a production batch. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to improve my KPI and present informations about the ingredients of the ingredients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basicly i need to go down two levels of analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this even possible without using the hierarchy function on the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 16:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248788#M395540</guid>
      <dc:creator />
      <dc:date>2016-12-12T16:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Double P() Operator</title>
      <link>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248789#M395541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample app and expected output to work on ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 16:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248789#M395541</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-12-12T16:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Double P() Operator</title>
      <link>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248790#M395542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general set analysis and p() within them could be nested. If it's applicable in your case or if other options are more suitable will be depending on your concrete scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 16:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248790#M395542</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-12-12T16:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Double P() Operator</title>
      <link>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248791#M395543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you mind sharing the correct syntax for a neasted set analysis with p()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ITEM_NO = P(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ITEM_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = P(INGREDIENT.ITEM_NO))but is not giving the correct output. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;the result of this expression just returns the selected item. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 07:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248791#M395543</guid>
      <dc:creator />
      <dc:date>2016-12-13T07:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Double P() Operator</title>
      <link>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248792#M395544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it should be more look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ITEM_NO = P({&amp;lt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;INGREDIENT.ITEM_NO = &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;P(INGREDIENT.ITEM_NO)&amp;gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ITEM_NO&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;whereby it could be more a matter of logic than of the correct syntax if the expression worked or not. It will depend on your datastructures and how which results should be displayed - such nesting could be complicated. Maybe a simpler approach like the following will be work, too:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9.0pt; font-family: 'Courier New';"&gt;INGREDIENT.ITEM_NO = &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;P(INGREDIENT.ITEM_NO)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 07:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248792#M395544</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-12-13T07:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Double P() Operator</title>
      <link>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248793#M395545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My structure for this scenario is kinda simple: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables Products and Ingredients that are connected with a perfect key composed of PLANT and Batch Number. For every Product i have all the ingredients, intermediates and bulks used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the table Products i also have all the Intermediates and bulks since they are created in a plant with a unique batch number: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want to reach with this double P operator is simply see Three levels of depth in the production for a final Product&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For Example Product A is composed by IA, IB and IC. -&amp;gt; No Set analysis needed everything is done by selection &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IC is also a product and is composed by IIA, IIB and IIC -&amp;gt; First Level P operator i get the IC using &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ITEM_NO&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = P(INGREDIENT.ITEM_NO) and everything works fine &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;IIB is also a product and is composed by IIIA, IIIB, IIIC -&amp;gt; Second level P operator i can't get the desired value and when i try the options you kindly described i get a first level output or a zero level output (selection i made).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every try i just did is always returning the selected ITEM_NO when used in the expression. Looks like when combining the 2 P() operators is not possibile to search the values correctly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 08:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248793#M395545</guid>
      <dc:creator />
      <dc:date>2016-12-13T08:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Double P() Operator</title>
      <link>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248794#M395546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Example.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146443_Example.png" style="height: 279px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Consider the attached image i guess is more clear to understand than what i wrote&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 08:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248794#M395546</guid>
      <dc:creator />
      <dc:date>2016-12-13T08:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Double P() Operator</title>
      <link>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248795#M395547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if this could be done in your wanted way - perhaps you need yet use a kind of hierarchy, maybe this is helpful: &lt;A href="https://community.qlik.com/qlik-blogpost/4325"&gt;Bill of Materials&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 09:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Double-P-Operator/m-p/1248795#M395547</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-12-13T09:27:39Z</dc:date>
    </item>
  </channel>
</rss>

