<?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 problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/293505#M498484</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;&lt;/P&gt;&lt;P&gt;I'm trying to convert expressions on a dashboard to use Set Analysis instead of IF to see if there are any performance improvements.&lt;/P&gt;&lt;P&gt;The tables on the dashboard tab need to be "static", meaning you cannot make any selections and these tables are not affected by selections on other tabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I've set the tables to read only and I also have a macro that detaches the tables as soon as a tab is selected. I don't find this very practical so I wanted to have a go with Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current IF expression:&lt;/P&gt;&lt;P&gt;sum(if(week_start=var_current_max_week AND _Market = 'My Sales', Revenue))&lt;/P&gt;&lt;P&gt;- working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Set Analysis expression:&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;week_start={'$(var_current_max_week)'}, _Market={'My Sales'}&amp;gt;} Revenue)&lt;/P&gt;&lt;P&gt;- I can't get this one to work... it's returning much higher values and it doesn't seem to be applying the set analysis on these fields.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 10:44:52 GMT</pubDate>
    <dc:creator>tduarte</dc:creator>
    <dc:date>2011-07-20T10:44:52Z</dc:date>
    <item>
      <title>Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/293505#M498484</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;&lt;/P&gt;&lt;P&gt;I'm trying to convert expressions on a dashboard to use Set Analysis instead of IF to see if there are any performance improvements.&lt;/P&gt;&lt;P&gt;The tables on the dashboard tab need to be "static", meaning you cannot make any selections and these tables are not affected by selections on other tabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I've set the tables to read only and I also have a macro that detaches the tables as soon as a tab is selected. I don't find this very practical so I wanted to have a go with Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current IF expression:&lt;/P&gt;&lt;P&gt;sum(if(week_start=var_current_max_week AND _Market = 'My Sales', Revenue))&lt;/P&gt;&lt;P&gt;- working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Set Analysis expression:&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;week_start={'$(var_current_max_week)'}, _Market={'My Sales'}&amp;gt;} Revenue)&lt;/P&gt;&lt;P&gt;- I can't get this one to work... it's returning much higher values and it doesn't seem to be applying the set analysis on these fields.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 10:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/293505#M498484</guid>
      <dc:creator>tduarte</dc:creator>
      <dc:date>2011-07-20T10:44:52Z</dc:date>
    </item>
    <item>
      <title>Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/293506#M498485</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;&amp;nbsp;&amp;nbsp; Try&amp;nbsp; this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({1&amp;lt;week_start={'$(#var_current_max_week)'}, _Market={'My Sales'}&amp;gt;} Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 10:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/293506#M498485</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-20T10:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/293507#M498486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried that before. It's not that, the dates are in the same format.&lt;/P&gt;&lt;P&gt;Something is weird because if I remove the 1 from set analysis it gives the correct result.&lt;/P&gt;&lt;P&gt;Problem is,it will be affected by selections on other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Telmo Duarte&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/293507#M498486</guid>
      <dc:creator>tduarte</dc:creator>
      <dc:date>2011-07-20T11:21:02Z</dc:date>
    </item>
    <item>
      <title>Set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/293508#M498487</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;&amp;nbsp;&amp;nbsp; I dont know will this work according to your requirement or not but try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;week_start={'$(#var_current_max_week)'}, _Market={'My Sales'}&amp;gt;} total Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-problem/m-p/293508#M498487</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-20T11:42:40Z</dc:date>
    </item>
  </channel>
</rss>

