<?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 How to get a Filter Value in Set Analisys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-a-Filter-Value-in-Set-Analisys/m-p/487491#M483088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me say that I have a table about regions in my country:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Father , &lt;/STRONG&gt;&lt;STRONG&gt;Region&lt;/STRONG&gt;&lt;STRONG&gt;Name, Type (R=Region, S = State, C = Country)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Brasil , South , R&lt;/P&gt;&lt;P&gt;Brasil , North , R&lt;/P&gt;&lt;P&gt;South , Rio de Janeiro , S&lt;/P&gt;&lt;P&gt;South , São Paulo , S&lt;/P&gt;&lt;P&gt;North ,&amp;nbsp; Amazonia , S&lt;/P&gt;&lt;P&gt;North , Acre&amp;nbsp; , S&lt;/P&gt;&lt;P&gt;Brasil , Rio de Janeiro , C&lt;/P&gt;&lt;P&gt;Brasil , São Paulo , C&lt;/P&gt;&lt;P&gt;Brasil , Amazonia , C&lt;/P&gt;&lt;P&gt;Brasil , Acre , C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when i filter by North, I will get Amazonia and Acre.&lt;/P&gt;&lt;P&gt;If I filter using Brasil, I will get all States from Brasil.. and so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have some values for each one of these, like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RegionName , Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Rio de Janeiro , 1&lt;/P&gt;&lt;P&gt; São Paulo , 2&lt;/P&gt;&lt;P&gt;Amazonia , 1&lt;/P&gt;&lt;P&gt;Acre , 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now let me say that I have a Filter ( [eIDEBEM]::Region ), with all regions, like:&lt;/P&gt;&lt;P&gt;Brasil&lt;/P&gt;&lt;P&gt;South &lt;/P&gt;&lt;P&gt;North&lt;/P&gt;&lt;P&gt;Rio de Janeiro&lt;/P&gt;&lt;P&gt;São Paulo&lt;/P&gt;&lt;P&gt; Amazonia&lt;/P&gt;&lt;P&gt;Acre &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When someone check's Brasil, i Would like to get back all States from Brasil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a Table , with a expression to grab the Type and filter like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF( only({&amp;lt;RegionName=[eIDEBEM]::Region&amp;gt;} Type)='C'&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;only({&amp;lt;Type={'S'}&amp;gt;}Value) //Reference 1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;IF(&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;only({&amp;lt;RegionName=[eIDEBEM]::Region&amp;gt;} Type)='R'&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; only({&amp;lt;Type={'S'},Father=[eIDEBEM]::Region&amp;gt;} Value)&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;only({&amp;lt;Type={'S'},RegionName=[eIDEBEM]::Region&amp;gt;} Value)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i choose the Counstry Brasil, and I ask to just print a number instead another set , it filters the Type like a Country (C).&lt;/P&gt;&lt;P&gt;Bu when I use the set, looks like it get's again in this expression and the do not goes to the first condition and then get in the last condition, breaking all the login.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody know What I'm doing wrong?&lt;/P&gt;&lt;P&gt;Dows anyone has another ideias of how solve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2013 20:43:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-16T20:43:05Z</dc:date>
    <item>
      <title>How to get a Filter Value in Set Analisys</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-a-Filter-Value-in-Set-Analisys/m-p/487491#M483088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me say that I have a table about regions in my country:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Father , &lt;/STRONG&gt;&lt;STRONG&gt;Region&lt;/STRONG&gt;&lt;STRONG&gt;Name, Type (R=Region, S = State, C = Country)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Brasil , South , R&lt;/P&gt;&lt;P&gt;Brasil , North , R&lt;/P&gt;&lt;P&gt;South , Rio de Janeiro , S&lt;/P&gt;&lt;P&gt;South , São Paulo , S&lt;/P&gt;&lt;P&gt;North ,&amp;nbsp; Amazonia , S&lt;/P&gt;&lt;P&gt;North , Acre&amp;nbsp; , S&lt;/P&gt;&lt;P&gt;Brasil , Rio de Janeiro , C&lt;/P&gt;&lt;P&gt;Brasil , São Paulo , C&lt;/P&gt;&lt;P&gt;Brasil , Amazonia , C&lt;/P&gt;&lt;P&gt;Brasil , Acre , C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when i filter by North, I will get Amazonia and Acre.&lt;/P&gt;&lt;P&gt;If I filter using Brasil, I will get all States from Brasil.. and so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have some values for each one of these, like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RegionName , Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Rio de Janeiro , 1&lt;/P&gt;&lt;P&gt; São Paulo , 2&lt;/P&gt;&lt;P&gt;Amazonia , 1&lt;/P&gt;&lt;P&gt;Acre , 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now let me say that I have a Filter ( [eIDEBEM]::Region ), with all regions, like:&lt;/P&gt;&lt;P&gt;Brasil&lt;/P&gt;&lt;P&gt;South &lt;/P&gt;&lt;P&gt;North&lt;/P&gt;&lt;P&gt;Rio de Janeiro&lt;/P&gt;&lt;P&gt;São Paulo&lt;/P&gt;&lt;P&gt; Amazonia&lt;/P&gt;&lt;P&gt;Acre &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When someone check's Brasil, i Would like to get back all States from Brasil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a Table , with a expression to grab the Type and filter like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF( only({&amp;lt;RegionName=[eIDEBEM]::Region&amp;gt;} Type)='C'&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;only({&amp;lt;Type={'S'}&amp;gt;}Value) //Reference 1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;IF(&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;only({&amp;lt;RegionName=[eIDEBEM]::Region&amp;gt;} Type)='R'&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; only({&amp;lt;Type={'S'},Father=[eIDEBEM]::Region&amp;gt;} Value)&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;,&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;only({&amp;lt;Type={'S'},RegionName=[eIDEBEM]::Region&amp;gt;} Value)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i choose the Counstry Brasil, and I ask to just print a number instead another set , it filters the Type like a Country (C).&lt;/P&gt;&lt;P&gt;Bu when I use the set, looks like it get's again in this expression and the do not goes to the first condition and then get in the last condition, breaking all the login.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody know What I'm doing wrong?&lt;/P&gt;&lt;P&gt;Dows anyone has another ideias of how solve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 20:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-a-Filter-Value-in-Set-Analisys/m-p/487491#M483088</guid>
      <dc:creator />
      <dc:date>2013-07-16T20:43:05Z</dc:date>
    </item>
  </channel>
</rss>

