<?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 Set analysis e() and ignore direct selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-e-and-ignore-direct-selection/m-p/1510513#M601486</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using the following set analysis expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Let vSetModifier10 = 'ID = p({&amp;lt;CT_KEY =  (p(CT_KEY)),Contributor = e(Contributor)
bisac_sbj2_code = p(bisac_sbj2_code)+p(bisac_sbj3_code),
ID = e(ID),Author = , Title = , ISBN =';

Only({1&amp;lt;$(vSetModifier10)&amp;gt;})&amp;gt;}

//Aggregate each match over each selected ID
Aggr(
rank(RANK(


Only({1&amp;lt;$(vSetModifier10)&amp;gt;})&amp;gt;}

//Aggregate each match over each selected ID
Aggr(
rank(-1*RANK(

(
//Ranked Format Difference
(-1*rank(-1*(fabs(
Sum(TOTAL&amp;lt;CT_KEY&amp;gt; 
Aggr( avg(Binding_Prioritisation),CT_KEY))
-
Only({1&amp;lt;$(vSetModifier10)&amp;gt;})&amp;gt;}(Binding_Prioritisation)))),0,1)
*$(vFormatWeighting))


)

,4,1),4,1)
,CT_KEY,ID)) &lt;/PRE&gt;&lt;P&gt;When I use this, and Contributor = e(Contributor) and then select a Contributor value - the expression returns no results.&lt;/P&gt;&lt;P&gt;With no Contributor selection, but selections in other fields such as ISBN, results are returned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can I ask how i might get the expression to consider indirect selections for Contributor, but ignore direct selections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 05:10:25 GMT</pubDate>
    <dc:creator>cmorri1988</dc:creator>
    <dc:date>2024-11-16T05:10:25Z</dc:date>
    <item>
      <title>Set analysis e() and ignore direct selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-e-and-ignore-direct-selection/m-p/1510513#M601486</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using the following set analysis expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Let vSetModifier10 = 'ID = p({&amp;lt;CT_KEY =  (p(CT_KEY)),Contributor = e(Contributor)
bisac_sbj2_code = p(bisac_sbj2_code)+p(bisac_sbj3_code),
ID = e(ID),Author = , Title = , ISBN =';

Only({1&amp;lt;$(vSetModifier10)&amp;gt;})&amp;gt;}

//Aggregate each match over each selected ID
Aggr(
rank(RANK(


Only({1&amp;lt;$(vSetModifier10)&amp;gt;})&amp;gt;}

//Aggregate each match over each selected ID
Aggr(
rank(-1*RANK(

(
//Ranked Format Difference
(-1*rank(-1*(fabs(
Sum(TOTAL&amp;lt;CT_KEY&amp;gt; 
Aggr( avg(Binding_Prioritisation),CT_KEY))
-
Only({1&amp;lt;$(vSetModifier10)&amp;gt;})&amp;gt;}(Binding_Prioritisation)))),0,1)
*$(vFormatWeighting))


)

,4,1),4,1)
,CT_KEY,ID)) &lt;/PRE&gt;&lt;P&gt;When I use this, and Contributor = e(Contributor) and then select a Contributor value - the expression returns no results.&lt;/P&gt;&lt;P&gt;With no Contributor selection, but selections in other fields such as ISBN, results are returned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can I ask how i might get the expression to consider indirect selections for Contributor, but ignore direct selections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-e-and-ignore-direct-selection/m-p/1510513#M601486</guid>
      <dc:creator>cmorri1988</dc:creator>
      <dc:date>2024-11-16T05:10:25Z</dc:date>
    </item>
  </channel>
</rss>

