<?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: Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826717#M291111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If(Match(GetFieldSelections(Department),'Consultants','IT'),sum({&amp;lt;Department = {'$(=GetFieldSelections(Department))'}&amp;gt;} Salary), sum({&amp;lt;Department = {'Consultants','IT'}&amp;gt;} salary))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2014 11:28:35 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-11-27T11:28:35Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826714#M291108</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;If I wanted to limit a calculation to certain dimension but still let the expression be effected by selection within those categories, how can I do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, If I want a chart to take the salary sum of only IT and consultants department, my set analysis would be like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Department = {'Consultants','IT'}&amp;gt;} salary)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me salaries sum of only these two departments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, If I would like this chart to be still selectable within these two departments, how can I do that. If from the listbox, I select either IT or consultants, it should show me the data only for that department. If no selection is made or any other department is selected, then show sum of both&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 11:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826714#M291108</guid>
      <dc:creator />
      <dc:date>2014-11-27T11:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826715#M291109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using $ sign in the above example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ = current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 11:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826715#M291109</guid>
      <dc:creator />
      <dc:date>2014-11-27T11:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826716#M291110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arif,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Match(GetFieldSelections(Department),'IT','Consultants'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Salary),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;Department={'IT','Consultants'}&amp;gt;}Salary))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: removed &amp;gt; 0 as realised from anbu's post this isn't needed!&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 11:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826716#M291110</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2014-11-27T11:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826717#M291111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If(Match(GetFieldSelections(Department),'Consultants','IT'),sum({&amp;lt;Department = {'$(=GetFieldSelections(Department))'}&amp;gt;} Salary), sum({&amp;lt;Department = {'Consultants','IT'}&amp;gt;} salary))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 11:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826717#M291111</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-27T11:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826718#M291112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use IF function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Dept='IT' OR Dept='Consultant',SUM(Salary))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 11:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826718#M291112</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2014-11-27T11:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826719#M291113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your solution is te separation of you two set analysis: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Department = {'Consultants'}&amp;gt;} salary) + &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;Department = { 'IT'}&amp;gt;} salary) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 08:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826719#M291113</guid>
      <dc:creator />
      <dc:date>2014-11-28T08:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826720#M291114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can use an operator to filter intersections:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Department &lt;STRONG&gt;*&lt;/STRONG&gt;= {'Consultants','IT'}&amp;gt;} salary)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 09:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/826720#M291114</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-28T09:14:14Z</dc:date>
    </item>
  </channel>
</rss>

