<?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 GetFieldSelections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199724#M500143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anthony. This may work but when we add new list boxes i may need to modify this everytime. I'll bug you tomorrow in office &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks Miguel. If i keep only Loc={'NA'}, Selections in HireDt or Emp may reduce the data. I dont want that. I need to consider only Dept selction. Can I have single quote with GetFieldSelections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2011 03:42:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-06T03:42:54Z</dc:date>
    <item>
      <title>Set Analysis GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199721#M500140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have attached sample App. I have chart where I need to show always Location NA data and Selected Dept. Other list box selections should not change the data set. This is the code i have.&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( {1&amp;lt;Loc ={NA} ,Dept =&lt;B&gt;&lt;I&gt;$(=GetFieldSelections(Dept))&lt;/I&gt;&lt;/B&gt; &amp;gt;} Sal )&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Please let me know what i am doing wrong here ?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 01:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199721#M500140</guid>
      <dc:creator />
      <dc:date>2011-04-06T01:48:23Z</dc:date>
    </item>
    <item>
      <title>Set Analysis GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199722#M500141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boopathi,&lt;/P&gt;&lt;P&gt;Use this in your expression. The "=" for HireDt and Emp disregards any selection made for these listboxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;({$&amp;lt;Loc={'NA'} ,HireDt= , Emp= &amp;gt;} Sal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 03:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199722#M500141</guid>
      <dc:creator />
      <dc:date>2011-04-06T03:02:21Z</dc:date>
    </item>
    <item>
      <title>Set Analysis GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199723#M500142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;There are several things here about syntax. First, if values are strings (or some of them are) they must be quoted. GetFieldSelections doesn't do that. Apart from that, always the left side is a field and the right side is between curly brackets. But most important, modifiers in set analysis are affected by selections, so you don't need to say Dept = Dept. It's implicit. So your expressions will look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({1&amp;lt; Loc = {'NA'} &amp;gt;} Sal)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If there is no values selected in Dept, then all of them are possible, so that will return the sum of Sal for Loc = 'NA' accordingly. If there are some of them, you chart will reflect it.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 03:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199723#M500142</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-06T03:08:21Z</dc:date>
    </item>
    <item>
      <title>Set Analysis GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199724#M500143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anthony. This may work but when we add new list boxes i may need to modify this everytime. I'll bug you tomorrow in office &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks Miguel. If i keep only Loc={'NA'}, Selections in HireDt or Emp may reduce the data. I dont want that. I need to consider only Dept selction. Can I have single quote with GetFieldSelections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 03:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199724#M500143</guid>
      <dc:creator />
      <dc:date>2011-04-06T03:42:54Z</dc:date>
    </item>
    <item>
      <title>Set Analysis GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199725#M500144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have modified the expression so that it will effectively disregard all other selections besides Dept and you don't have to modify the expression each time new listboxes are added&lt;/P&gt;&lt;P&gt;Enjoy !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( {1&amp;lt;Loc={'NA'}, Dept= {$(vDept)}&amp;gt;} Sal)&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;vDept =If(IsNull(GetFieldSelections(Dept)), '*', GetFieldSelections(Dept))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 04:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199725#M500144</guid>
      <dc:creator />
      <dc:date>2011-04-06T04:28:58Z</dc:date>
    </item>
    <item>
      <title>Set Analysis GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199726#M500145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what i was looking for...Thanks a bunch Anthony &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 17:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-GetFieldSelections/m-p/199726#M500145</guid>
      <dc:creator />
      <dc:date>2011-04-06T17:51:43Z</dc:date>
    </item>
  </channel>
</rss>

