<?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 Indirect Selection (P function etc.) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083561#M466304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've two data elements in two different tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_1.contact_id (this is one of the data elements in Table 1)&lt;/P&gt;&lt;P&gt;Table_2.contact_id (this is one of the data elements in Table 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data model is structured in a way that these two tables are not linked using contact_id because of circular reference issues in the larger scheme of data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, for certain computations i need to assign Table_2.contact_id based on the selection of Table_1.contact id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. The user on the front end is going to select Table_1.contact id, However, when that selection is made i need to make that same selection on Table_2.contact_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using p function to do this. For example, writing the code Table_2.contact_id = p(Table_1.contact_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason this didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to make this indirect selection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2016 18:51:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-09T18:51:41Z</dc:date>
    <item>
      <title>Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083561#M466304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've two data elements in two different tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_1.contact_id (this is one of the data elements in Table 1)&lt;/P&gt;&lt;P&gt;Table_2.contact_id (this is one of the data elements in Table 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data model is structured in a way that these two tables are not linked using contact_id because of circular reference issues in the larger scheme of data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, for certain computations i need to assign Table_2.contact_id based on the selection of Table_1.contact id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. The user on the front end is going to select Table_1.contact id, However, when that selection is made i need to make that same selection on Table_2.contact_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using p function to do this. For example, writing the code Table_2.contact_id = p(Table_1.contact_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason this didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to make this indirect selection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 18:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083561#M466304</guid>
      <dc:creator />
      <dc:date>2016-02-09T18:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083562#M466305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kind of a loaded question--basically, it depends on how your data model is structured. I'm guessing, from your description, that Table1 and Table2 are connected &lt;EM&gt;somehow&lt;/EM&gt; (i.e. that neither one is an island). If so, keep in mind that selecting a set of X values of Table1's contact_id values will have an associative impact on Table2's possible universe of contact_id values. So you may need to also ignore Table1's contact_id field in the same set analysis: sum({&amp;lt;Table_1.contact_id,&lt;SPAN style="font-size: 13.3333px;"&gt;Table_2.contact_id=P(&lt;SPAN style="font-size: 13.3333px;"&gt;Table_1.contact_id&lt;/SPAN&gt;)&lt;/SPAN&gt;&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But really this is just a guess. If you need more help, posting screenshots of your data model and expression might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 19:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083562#M466305</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2016-02-09T19:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083563#M466306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you detail what you mean with 'it doesn't work'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of the time when you get issues with p() function, you need to clear other field selections to avoid an incompatible set, just like Vlad mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also need to assure that there are possible matches in the field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you create two list boxes for the contact_id fields of both tables, then make your selections in table1 and as well all the selections you may imply in your set analysis, are there matching value possible in the contact_id of table2 list box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just as a side note, if you want to assign the set of &lt;EM&gt;selected&lt;/EM&gt; table1 values, you could also write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt;Table2.contact_id = Table1.contact_id &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. no need for the p() function in that case ( the p() function will also assign a set when there is no selection made in table1 contact_id).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 21:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083563#M466306</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-09T21:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083564#M466307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the two tables are indirectly connected and they are not islands by themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the code per your suggestion below, however it still doesn't seem to be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({ 1&amp;lt; parent_clone_type = {'Parent'},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rating_contact_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; history_rating_contact_id = p(rating_contact_id),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; security_id_effective_date2 = p(security_id_effective_date) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}&lt;/P&gt;&lt;P&gt;benchmark_contrib_mktval_weight)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is a pic of part of the data model, you'll see core_rating and core_security_history are the two tables i am referring to core_rating has rating_contact_id which the user selects on the front end, however i need to get history_rating_contact_id selected in order to get the correct benchmark_contrib_mktval_weight sum. I've writing following two lines of codes in order to achieve it but it is still not equating &lt;SPAN style="font-size: 13.3333px;"&gt;history_rating_contact_id TO rating_contact_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;rating_contact_id,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;history_rating_contact_id = p(rating_contact_id),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Data_Model.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114081_Data_Model.PNG" style="height: 300px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 22:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083564#M466307</guid>
      <dc:creator />
      <dc:date>2016-02-09T22:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083565#M466308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried to select the possible values manually in list boxes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are also modifying this date field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; security_id_effective_date2 = p(security_id_effective_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where you can have same issues, i.e. you may need to clear security_id_effective_date field to avoid incompatible sets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 22:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083565#M466308</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-09T22:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083566#M466309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, add security_id_effective_date to be ignored in your set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 01:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083566#M466309</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2016-02-10T01:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083567#M466310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just noticed that you are using set identifier 1 in your set analysis, so I don't think it's a matter of clearing other fields, so your set expression can be limited to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({ 1&amp;lt; parent_clone_type = {'Parent'},&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; history_rating_contact_id = p(rating_contact_id),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; security_id_effective_date2 = p(security_id_effective_date)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;benchmark_contrib_mktval_weight)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Can you detail what your expected results are and what you see instead? If you get zero returned even when no selections are made. it seems to me that the combination of the field modifications are incompatible, resulting in an empty record set for the aggregation scope. I would specifically look into the impact of 'Parent' set to parent_clone_type to the possible values of history_rating_contact_id and security_id_effective_date2. There still need to be some common values with rating_contact_id resp. security_id_effective_date.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Without knowing your data model (and the possible field values), as well as why you think the expression is not working, it's hard to tell what my be wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 11:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083567#M466310</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-10T11:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083568#M466311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;added security_id_effective_date to be ignored in set analysis but it still didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To explain the problem a bit differently. The user is making following two selection on the front end. (Effective Date and rating_contact_id)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Bets_Pic.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114174_Bets_Pic.PNG" style="height: 286px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, using the set analysis i need to make selection on history_rating_contact_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used following set analysis but it doesn't seen to be working.&lt;/P&gt;&lt;P&gt;Sum({ 1&amp;lt; parent_clone_type = {'Parent'},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rating_contact_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; history_rating_contact_id = {'917'},//p(rating_contact_id),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; security_id_effective_date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; security_id_effective_date2 = p(security_id_effective_date) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}&lt;/P&gt;&lt;P&gt;benchmark_contrib_mktval_weight)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 14:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083568#M466311</guid>
      <dc:creator />
      <dc:date>2016-02-10T14:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083569#M466312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, that's helpful. Can you do one more screenshot with the following: (1) add list boxes for security_id_effective_date2 and benchmark_contrib_mktval_weight, (2) in addition to what you have selected above, physically click (a) Parent in parent_clone_type, (b) 917 in history_rating_contact_id, and (c) 2016-01-29 in &lt;SPAN style="font-size: 13.3333px;"&gt;security_id_effective_date2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 17:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083569#M466312</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2016-02-10T17:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083570#M466313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that security_id_effective_date2 is actually concatenation between a security id and effective date so i've selected one of the security's effective date here i.e. 203_2016-01-29. 203 being one of the securities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Bets_Pic.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114233_Bets_Pic.PNG" style="height: 396px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 20:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083570#M466313</guid>
      <dc:creator />
      <dc:date>2016-02-10T20:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083571#M466314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So there don't seem to be any matching values for this field modifier assignment, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;security_id_effective_date2 = p(security_id_effective_date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 20:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083571#M466314</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-10T20:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083572#M466315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is. Just haven't included it in the screen shot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 20:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083572#M466315</guid>
      <dc:creator />
      <dc:date>2016-02-10T20:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083573#M466316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the screenshot with security_id_effective_date and security_id_effective_date_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Bets_Pic.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114234_Bets_Pic.PNG" style="height: 402px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 20:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083573#M466316</guid>
      <dc:creator />
      <dc:date>2016-02-10T20:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083574#M466317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still don't see any potentially matching values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this that's just because of the value selected or range of list box values shown, but unless you can find matching values for the p() assignments, I wouldn't expect the set expression to return something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 22:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083574#M466317</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-10T22:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083575#M466318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting at the same thing swuehl is. Is there, in fact, a matching value for your dates?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 22:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083575#M466318</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2016-02-10T22:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083576#M466319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl/Vlad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are matching records in both&lt;/P&gt;&lt;P&gt;security_id_effective_date2 = security_id_effective_date as well as&lt;/P&gt;&lt;P&gt;history_rating_contact_id = rating_contact_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be the picture below confirms it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Bets_Pic.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114255_Bets_Pic.PNG" style="height: 468px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 23:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083576#M466319</guid>
      <dc:creator />
      <dc:date>2016-02-10T23:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083577#M466320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still don't see matching values for effective dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One list ends (in your screenshot) at 301... the other list box starts at 476...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 23:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083577#M466320</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-10T23:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083578#M466321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, QlikView is just trying to compare text strings for your dates, which clearly do not match in your case. You might need to do some data transformation to create true matching values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 23:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083578#M466321</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2016-02-10T23:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083579#M466322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies for repeating but let me explain the problem and what the code is doing step-by-step.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Goal: &lt;/STRONG&gt;Narrow down the records to arrive at the correct total for benchmark_contrib_mktval_weight&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Starting Point Observations: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;count of rating_contact_id:&lt;STRONG&gt; &lt;/STRONG&gt;2144&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;count of history_rating_contact_id: 1171&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count of security_id_effective_date: 1201&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count of security_id_effective_date2: 4032&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count of &lt;SPAN style="font-size: 13.3333px;"&gt;benchmark_contrib_mktval_weight:4032 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum of &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;benchmark_contrib_mktval_weight: 800%&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Part of Data Model:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Data_Model.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114321_Data_Model.PNG" style="height: 427px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Here is what's happening step by step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step1:&lt;/STRONG&gt; User selects rating_contact_id &lt;STRONG&gt;917&lt;/STRONG&gt; (Note, this attribute is in core_rating_table)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Observations:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count of rating_contact_id:&lt;STRONG&gt; &lt;/STRONG&gt;16&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;count of history_rating_contact_id: 60&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count of security_id_effective_date: 60&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count of security_id_effective_date2: 4032&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count of &lt;SPAN style="font-size: 13.3333px;"&gt;benchmark_contrib_mktval_weight:4032 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum of &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;benchmark_contrib_mktval_weight: 800%&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Step2:&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; User selects parent_clone_type &lt;STRONG&gt;Parent&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Observations:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count of rating_contact_id:&lt;STRONG&gt; &lt;/STRONG&gt;16&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;count of history_rating_contact_id: 60&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count of security_id_effective_date: 60&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count of security_id_effective_date2: 4032&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count of &lt;SPAN style="font-size: 13.3333px;"&gt;benchmark_contrib_mktval_weight:4032&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum of &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;benchmark_contrib_mktval_weight: 800%&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Step3:&lt;/STRONG&gt; User selects effective_date 2016-01-29&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Note this attribute is in core_position table. core_position table is linked to core_rating table by security_id &lt;SPAN style="font-size: 13.3333px;"&gt;key. Further, since core_position table also contains security_id_effective date all the securities corresponding to effective date 2016-01-29 also gets selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Observations:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count of rating_contact_id:&lt;STRONG&gt; &lt;/STRONG&gt;13&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;count of history_rating_contact_id: 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count of security_id_effective_date: 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count of security_id_effective_date2: 4032&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count of &lt;SPAN style="font-size: 13.3333px;"&gt;benchmark_contrib_mktval_weight:4032&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum of &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;benchmark_contrib_mktval_weight: 800%&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;At this point following is part of the UI picture&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;IMG alt="Bets_Pic.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/114351_Bets_Pic.PNG" style="height: 503px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Step4:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Notice that now there are 7 records in security_id_effective date and i am using the code&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;security_id_effective_date2 = p(&lt;SPAN style="font-size: 13.3333px;"&gt;security_id_effective_date) to narrow down the count of &lt;SPAN style="font-size: 13.3333px;"&gt;security_id_effective_date2 to 7.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Now, the correct answer is &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum of &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;benchmark_contrib_mktval_weight should be 6.16%.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This would be achieved if user made another selection on the UI where he/she makes the exact same selection on history_rating_contact_id field (i.e. 917 same as step 1 but this time of a similar yet different field)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt; User won't have history_rating_contact_id field on the UI to select so somehow using set analysis history_rating_contact_id needs to be equated to rating_contact_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To achieve this i am writing the code &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;history_rating_contact_id = p(rating_contact_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point the it still doesn't arrive at the correct answer. So it looks to me that either the p function is not being interpreted or i should be using another function instead of p function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083579#M466322</guid>
      <dc:creator />
      <dc:date>2016-02-11T17:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Selection (P function etc.)</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083580#M466323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a)&lt;/P&gt;&lt;P&gt;You are talking about count of field values, I assume you are using something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(FIELD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right?&lt;/P&gt;&lt;P&gt;Note that some of your fields are key fields between tables, and counting a key field should not be done, since the results are misleading (QV does not know which table the count should be performed in). Either count a field in a specific table, where you know there is a value when the original field shows a value or perform a Count(DISTINCT FIELD) in key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a Count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;security_id_effective_date) would explain that you get 7 returned, while the right most list box shows more distinct values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMO, a distinct count is what is of interest here anyway, since set analysis' field modifier are only coping with distinct field values in the symbol table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TLDR: Could you post the same observations, but using a Count(DISTINCT FIELD)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b)&lt;/P&gt;&lt;P&gt;Step 4: "&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Notice that now there are 7 records in security_id_effective date and i am using the code &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;security_id_effective_date2 = p(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;security_id_effective_date) to narrow down the count of&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;security_id_effective_date2 to 7."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, a field modifier, like &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;security_id_effective_date2 = p(&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;&lt;EM&gt;security_id_effective_date) &lt;/EM&gt;is coping with distinct values of the symbol table, not records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;And what you probably know, you should read the line like: Take all possible symbols (distinct values) of field &lt;EM&gt;security_id_effective_date&lt;/EM&gt; and try to find&lt;STRONG&gt; matching values&lt;/STRONG&gt; in field &lt;EM style="font-size: 13.3333px;"&gt;security_id_effective_date2. &lt;/EM&gt;Each matching value gets selected (in the scope of the aggregation only) , defining the scope for the aggregation you are using the set expression in, in combination with the other field modifier / set identifier etc. in your set expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;I wrote matching values in bold letters, because I still can't see matching values in your screenshot. I believe that's the cause of your issue, not a bug in p() function or something else. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;Though it's quite hard to correctly analyze what happens with all the implicite field selections etc., &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;I believe your set expression just renders to a possible record set containing zero records (Is this what you are getting from your expression with the set expression?),&amp;nbsp; because there are no matching values when you try to use this piece of code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 13.3333px; font-style: inherit; font-weight: inherit;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;security_id_effective_date2 = p(&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;EM&gt;security_id_effective_date)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 18:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Selection-P-function-etc/m-p/1083580#M466323</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-11T18:38:47Z</dc:date>
    </item>
  </channel>
</rss>

