<?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: p() function to  NOT ignore selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971680#M332601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand the logic I want is this:&lt;/P&gt;&lt;P&gt;"the intersection of all possible values in JDE_Job&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (regardless of the state because I dont care what was selected in JDE_JOB, just that the JDE_Job value in E1 Job # exists)&lt;/P&gt;&lt;P&gt;and the possible values based on selection made in [E1 Job #].&amp;nbsp; Correct?&lt;/P&gt;&lt;P&gt;If this logic is correct then I simply need to convert the getfieldselections() using $() expansion.&amp;nbsp; Or is there a simpler formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;({$&amp;lt;&lt;/SPAN&gt;[E1 Job #]&lt;SPAN class="s2"&gt; = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;p&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;JDE_Job&lt;SPAN class="s2"&gt;)*&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;[E1 Job #]&lt;SPAN class="s2"&gt;)&amp;gt;}&lt;/SPAN&gt;[Actual Labor Hours]&lt;SPAN class="s2"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;The below is what i tried but I get 0 as result.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;({$&amp;lt;&lt;/SPAN&gt;[E1 Job #]&lt;SPAN class="s2"&gt; = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;p&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;JDE_Job&lt;SPAN class="s2"&gt;)*&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;p&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;JDE&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;::&lt;/SPAN&gt;[E1 Job #]&lt;SPAN class="s2"&gt;)&amp;gt;}&lt;/SPAN&gt;[Actual Labor Hours]&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Note:&amp;nbsp; JDE is stage name&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2015 21:04:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-04T21:04:30Z</dc:date>
    <item>
      <title>p() function to  NOT ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971672#M332593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want the below to filter to the E1 Job # that is selected but using the function below it is ignoring the selection and showing all the jobs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;({&amp;lt;&lt;/SPAN&gt;[E1 Job #]&lt;SPAN class="s2"&gt; = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;p&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;JDE_Job&lt;SPAN class="s2"&gt;)&amp;gt;}&lt;/SPAN&gt;[Actual Units]&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="s2"&gt;E1 Job# is using Alternate State 1 and JDE_Job is using Alternate State 2&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="s2"&gt;It is filtering the sum to only those JDE_Jobs that exist so that is working&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="s2"&gt;Now it needs to filter to the specific job within the E1 Job # field when selected but it ignores this filter&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="s2"&gt;What am I missing?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 21:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971672#M332593</guid>
      <dc:creator />
      <dc:date>2015-09-03T21:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: p() function to  NOT ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971673#M332594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What state is the object that holds this expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 21:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971673#M332594</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-09-03T21:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: p() function to  NOT ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971674#M332595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 21:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971674#M332595</guid>
      <dc:creator />
      <dc:date>2015-09-03T21:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: p() function to  NOT ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971675#M332596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, do you know what I am missing?&amp;nbsp; It should not be ignoring the selection from what I can tell but I dont use the p() regularly.&amp;nbsp; The table that houses the JDE_Job is unrelated to the table with the E1 field.&amp;nbsp; This application is only for discovery purpose for a data migration project.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 14:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971675#M332596</guid>
      <dc:creator />
      <dc:date>2015-09-04T14:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: p() function to  NOT ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971676#M332597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not fully clear what you are after. But to reference something in another state you have to use the&amp;nbsp; State name in the expression. So if you want to utilize the JDE_Job selections from State2, I believe it would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[E1 Job #]&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; = &lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;p&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(State2::&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;JDE_Job&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Actual Units]&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s2" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 18:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971676#M332597</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-09-04T18:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: p() function to  NOT ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971677#M332598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is referencing the JDE_Job no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is when the user selects a specific value in the E1 Job #&lt;/P&gt;&lt;P&gt;selection box which is State 1, it still shows all possible E1 Job #s that&lt;/P&gt;&lt;P&gt;are in the JDE_Job,&lt;/P&gt;&lt;P&gt;It is not filtering down to the one selected even when the chart object is&lt;/P&gt;&lt;P&gt;using State 1 and the E1 Job # selection box is State 1.   I tried putting&lt;/P&gt;&lt;P&gt;the {$&amp;lt; in but still it ignore the selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 19:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971677#M332598</guid>
      <dc:creator />
      <dc:date>2015-09-04T19:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: p() function to  NOT ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971678#M332599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makes sense. You are expliciting setting &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[E1 Job #]. That is replacing any user selection. What I think you want is the intersection of your set modifiers and the user's selection. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;STRONG&gt;$ *&lt;/STRONG&gt; &amp;lt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 20:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971678#M332599</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-09-04T20:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: p() function to  NOT ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971679#M332600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So i need the p function using State 2&amp;nbsp; to understand the selections of the State 1 so the Possible values are reduced based on the selections in State 1 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 20:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971679#M332600</guid>
      <dc:creator />
      <dc:date>2015-09-04T20:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: p() function to  NOT ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971680#M332601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand the logic I want is this:&lt;/P&gt;&lt;P&gt;"the intersection of all possible values in JDE_Job&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (regardless of the state because I dont care what was selected in JDE_JOB, just that the JDE_Job value in E1 Job # exists)&lt;/P&gt;&lt;P&gt;and the possible values based on selection made in [E1 Job #].&amp;nbsp; Correct?&lt;/P&gt;&lt;P&gt;If this logic is correct then I simply need to convert the getfieldselections() using $() expansion.&amp;nbsp; Or is there a simpler formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;({$&amp;lt;&lt;/SPAN&gt;[E1 Job #]&lt;SPAN class="s2"&gt; = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;p&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;JDE_Job&lt;SPAN class="s2"&gt;)*&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;[E1 Job #]&lt;SPAN class="s2"&gt;)&amp;gt;}&lt;/SPAN&gt;[Actual Labor Hours]&lt;SPAN class="s2"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;The below is what i tried but I get 0 as result.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;({$&amp;lt;&lt;/SPAN&gt;[E1 Job #]&lt;SPAN class="s2"&gt; = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;p&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;JDE_Job&lt;SPAN class="s2"&gt;)*&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;p&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;JDE&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;::&lt;/SPAN&gt;[E1 Job #]&lt;SPAN class="s2"&gt;)&amp;gt;}&lt;/SPAN&gt;[Actual Labor Hours]&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Note:&amp;nbsp; JDE is stage name&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 21:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971680#M332601</guid>
      <dc:creator />
      <dc:date>2015-09-04T21:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: p() function to  NOT ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971681#M332602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This appears to be working now.&amp;nbsp; Changed all expressions and reloaded.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;({$&amp;lt;&lt;/SPAN&gt;[E1 Job #]&lt;SPAN class="s2"&gt; = &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;p&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;JDE_Job&lt;SPAN class="s2"&gt;)*&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;p&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;JDE&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;::&lt;/SPAN&gt;[E1 Job #]&lt;SPAN class="s2"&gt;)&amp;gt;}&lt;/SPAN&gt;[Actual Labor Hours]&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Thanks Rob!! See you in NYC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 21:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/p-function-to-NOT-ignore-selection/m-p/971681#M332602</guid>
      <dc:creator />
      <dc:date>2015-09-04T21:58:59Z</dc:date>
    </item>
  </channel>
</rss>

