<?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 within Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-within-Set-Analysis/m-p/1590502#M443531</link>
    <description>&lt;P&gt;I have an expression.&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Hierarchy_level_1={'Business'}&amp;gt;}Document_Number)&lt;/P&gt;&lt;P&gt;I want to replace the set analysis with "Select all the document number where Hierachy Level 1 is Buisness".&lt;/P&gt;&lt;P&gt;The reason I am doing this is because there are values in&amp;nbsp; Hierarcy level 2&amp;nbsp; which dont come under Hierarchy Level 1 "Buisness". But these Hierarchy level 2 values have Document numbers associated with them that come under "Business". when someone selects a Hierarchy level that dose not associate with&amp;nbsp; Hierarchy Level 1 "Buisness" will show data for all the Document number common Between&amp;nbsp; &amp;nbsp;Hierarchy level 2&amp;nbsp; selection and the ones that come under&amp;nbsp;&amp;nbsp;Hierarchy Level 1 "Buisness".&lt;/P&gt;&lt;P&gt;I have written the Following set analysis foe the same but it dosent seem to work.&lt;/P&gt;&lt;P&gt;=COunt({$&amp;lt;[Document Number]=P({$&amp;lt;[Hierarchy Level 1]={'Procurement'}&amp;gt;}[Document Number])&amp;gt;}distinct[Document Number])&lt;/P&gt;&lt;P&gt;can anyone please help. Its very urgent.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2019 13:56:00 GMT</pubDate>
    <dc:creator>Abhishek1</dc:creator>
    <dc:date>2019-06-11T13:56:00Z</dc:date>
    <item>
      <title>Set Analysis within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-within-Set-Analysis/m-p/1590502#M443531</link>
      <description>&lt;P&gt;I have an expression.&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Hierarchy_level_1={'Business'}&amp;gt;}Document_Number)&lt;/P&gt;&lt;P&gt;I want to replace the set analysis with "Select all the document number where Hierachy Level 1 is Buisness".&lt;/P&gt;&lt;P&gt;The reason I am doing this is because there are values in&amp;nbsp; Hierarcy level 2&amp;nbsp; which dont come under Hierarchy Level 1 "Buisness". But these Hierarchy level 2 values have Document numbers associated with them that come under "Business". when someone selects a Hierarchy level that dose not associate with&amp;nbsp; Hierarchy Level 1 "Buisness" will show data for all the Document number common Between&amp;nbsp; &amp;nbsp;Hierarchy level 2&amp;nbsp; selection and the ones that come under&amp;nbsp;&amp;nbsp;Hierarchy Level 1 "Buisness".&lt;/P&gt;&lt;P&gt;I have written the Following set analysis foe the same but it dosent seem to work.&lt;/P&gt;&lt;P&gt;=COunt({$&amp;lt;[Document Number]=P({$&amp;lt;[Hierarchy Level 1]={'Procurement'}&amp;gt;}[Document Number])&amp;gt;}distinct[Document Number])&lt;/P&gt;&lt;P&gt;can anyone please help. Its very urgent.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 13:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-within-Set-Analysis/m-p/1590502#M443531</guid>
      <dc:creator>Abhishek1</dc:creator>
      <dc:date>2019-06-11T13:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-within-Set-Analysis/m-p/1590528#M443534</link>
      <description>&lt;P&gt;For better under standing of the problem I have tried to simplify it below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;suppose field Hierarchy level 1 has a value 'Business'. Anothwer fiel 'document number' has values 1,2,3,4,5 associated with this&amp;nbsp;hierarchy Level 1 ='Business ' . Now suppose some one selects a value from field Hierarchy Level 2 has a value 'X' and this 'X' dosent come under hierarchy Level 1 'Business '(It becomes grey when&amp;nbsp; hierarchy Level 1 ='Business ) . but This X has document number 2,3 associated with it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if some one selects this&amp;nbsp;&amp;nbsp; Hierarchy Level 2 'X' the data should be shown for&amp;nbsp; document number 2,3.&amp;nbsp;&lt;BR /&gt;But if I write this expression&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Hierarchy Level 1 ={'Business'}&amp;gt;}Document_number)&lt;/P&gt;&lt;P&gt;this expression will give '0' as output as Hierarchy Level 2 'X' dosent come under Business. So instead I am trying to bring the document number associated with the&amp;nbsp;Hierarchy level 1 Business. Something like this.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Count({$&amp;lt;[Document Number]=P({$&amp;lt;[Hierarchy Level 1]={'Business'}&amp;gt;}[Document Number])&amp;gt;}distinct[Document Number]).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am expecting this set analysis to give me THe Docuemnt numbers associated with Business.So it becomes something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Count({&amp;lt;Document Number = {1,2,3,4,5}&amp;gt;}Document Number). If this works and Some one selects&amp;nbsp;Hierarchy Level 2 'X'. The data should be shown as&amp;nbsp;Hierarchy Level 2 'X'' as Document number 1,2 associated with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but its not working&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-within-Set-Analysis/m-p/1590528#M443534</guid>
      <dc:creator>Abhishek1</dc:creator>
      <dc:date>2019-06-11T14:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-within-Set-Analysis/m-p/1590558#M443535</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count({$&amp;lt;[Document Number] = P({$&amp;lt;[Hierarchy Level 1] = {'Business'}, [Hierarchy Level 2]&amp;gt;}[Document Number])&amp;gt;} DISTINCT [Document Number])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 15:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-within-Set-Analysis/m-p/1590558#M443535</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-11T15:08:26Z</dc:date>
    </item>
  </channel>
</rss>

