<?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: Problem nesting set modifiers with advanced searches in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-nesting-set-modifiers-with-advanced-searches/m-p/1229148#M517570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think since your chart has two dimensions where you are checking if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;other_dimensions=&amp;gt;} travel_expenses)&lt;/SPAN&gt; &amp;gt; 0, your set analysis is not working. In order to make advanced search isn't working. With a slight change in the script, you might be able to make it work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Account,&lt;/STRONG&gt;&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; Customer,&lt;/STRONG&gt;&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; &lt;SPAN style="color: #ff0000;"&gt;AutoNumber(Account&amp;amp;Customer) as Key&lt;/SPAN&gt;&lt;/STRONG&gt;&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; ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;other_dimensions=, &lt;SPAN style="color: #ff0000;"&gt;Key&lt;/SPAN&gt; = {“=Sum({$&amp;lt;other_dimensions=&amp;gt;} travel_expenses) &amp;gt; 0”}&amp;gt;} account_total)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2017 10:26:20 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-11T10:26:20Z</dc:date>
    <item>
      <title>Problem nesting set modifiers with advanced searches</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-nesting-set-modifiers-with-advanced-searches/m-p/1229146#M517568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a Pivot table with: customer dimension, account dimension, sum(travel_expenses), sum(account_total).&lt;/P&gt;&lt;P&gt;I want to show rows only when travel expenses is &amp;gt;0, but set modifiers ignoring current row context.&lt;/P&gt;&lt;P&gt;This is the example from guide:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;sum( {$&amp;lt;Customer = {“=Sum({1&amp;lt;Year = {2007}&amp;gt;} Sales ) &amp;gt; 1000000”}&amp;gt;} Sales )&lt;/P&gt;&lt;P&gt;I prepared:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum( {$&amp;lt;other_dimensions=, account= {“=Sum({$&amp;lt;other_dimensions=&amp;gt;} travel_expenses) &amp;gt; 0”}&amp;gt;} account_total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"other_dimensions=" is to indicate that there are a lot of other dimensions that I omitted to simplify example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Qlikview resolve the nested "=Sum({$&amp;lt;other_dimensions=&amp;gt;} travel_expenses) &amp;gt; 0" for all customers, not for customer in current row.&lt;/P&gt;&lt;P&gt;Therefor it shows customers and accounts, when account total is greater than 0 in total document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So qlikview ignores current row context (customer).&lt;/P&gt;&lt;P&gt;This is a bug or is impossible to do it?&lt;/P&gt;&lt;P&gt;There is a solution, &lt;SPAN style="text-decoration: underline;"&gt;using advanced searches&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a workaround without advanced searches:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;if(Sum({$&amp;lt;other_dimensions=&amp;gt;} travel_expenses) &amp;gt; 0, sum( {$&amp;lt;other_dimensions=&amp;gt;} travel_expenses) &amp;gt; 0”}&amp;gt;} account_total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 09:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-nesting-set-modifiers-with-advanced-searches/m-p/1229146#M517568</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2017-01-11T09:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem nesting set modifiers with advanced searches</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-nesting-set-modifiers-with-advanced-searches/m-p/1229147#M517569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;think of set analysis as a selection in the model &lt;/P&gt;&lt;P&gt;therefore it isn't made on row level but on dimension level in the whole document&lt;/P&gt;&lt;P&gt;if you want row level you'll need to use if function as you suggested&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 10:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-nesting-set-modifiers-with-advanced-searches/m-p/1229147#M517569</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2017-01-11T10:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem nesting set modifiers with advanced searches</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-nesting-set-modifiers-with-advanced-searches/m-p/1229148#M517570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think since your chart has two dimensions where you are checking if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;other_dimensions=&amp;gt;} travel_expenses)&lt;/SPAN&gt; &amp;gt; 0, your set analysis is not working. In order to make advanced search isn't working. With a slight change in the script, you might be able to make it work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Account,&lt;/STRONG&gt;&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; Customer,&lt;/STRONG&gt;&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; &lt;SPAN style="color: #ff0000;"&gt;AutoNumber(Account&amp;amp;Customer) as Key&lt;/SPAN&gt;&lt;/STRONG&gt;&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; ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;other_dimensions=, &lt;SPAN style="color: #ff0000;"&gt;Key&lt;/SPAN&gt; = {“=Sum({$&amp;lt;other_dimensions=&amp;gt;} travel_expenses) &amp;gt; 0”}&amp;gt;} account_total)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 10:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-nesting-set-modifiers-with-advanced-searches/m-p/1229148#M517570</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-11T10:26:20Z</dc:date>
    </item>
  </channel>
</rss>

