<?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: Excluding a value from field by selection - Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303174#M405908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample of where you are trying this? because I don't see a reason for e() to not work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 May 2017 10:49:59 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-05-22T10:49:59Z</dc:date>
    <item>
      <title>Excluding a value from field by selection - Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303170#M405904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm Trying to get a calculation to work but i need to be able to select a value from a field and have it be excluded in the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me set the stage here a little bit, i have field name [Hours] and [ProjectID].&lt;/P&gt;&lt;P&gt;What i'm trying to achieve is that if i make&amp;nbsp; selection on my listbox for [ProjectID] it will exclude the hours associated with that [ProjectID], or exclude multiple if i make multiple choices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried:&lt;/P&gt;&lt;P&gt;[ProjectID] = e([ProjectID]), in my set analysis, which has been suggested in other answers, but i am still stuck.&lt;/P&gt;&lt;P&gt;round about ways by using variables to manually exclude the entries using [ProjectID] -= {1,2,3} , although this works, its not what i'm looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 16:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303170#M405904</guid>
      <dc:creator>aunahsan</dc:creator>
      <dc:date>2017-05-19T16:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a value from field by selection - Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303171#M405905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the issue with using this&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;[ProjectID] = e([ProjectID])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 17:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303171#M405905</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-19T17:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a value from field by selection - Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303172#M405906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Aun!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve this using a two variables and a function GetFieldSelections(). Please, look at the picture below. I also attached an example!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="inst_exclude.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164089_inst_exclude.png" style="height: 398px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 18:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303172#M405906</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-05-19T18:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a value from field by selection - Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303173#M405907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sergey, thanks very much for you comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the actual calculation i'm trying to do is below, with your suggestion added, i'm getting a null value as the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(SUM({$&amp;lt;ClientID -={1,55}&amp;gt;} Hours)/SUM({$&amp;lt;ProjectID = {$(vVar1)} &amp;gt;} Hours), ' #,##0.0%')&lt;/P&gt;&lt;P&gt;the variables used are correct, i'm not sure for the null value at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get some vaues to be excluded from the ProjectID field when I make a Selection on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 09:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303173#M405907</guid>
      <dc:creator>aunahsan</dc:creator>
      <dc:date>2017-05-22T09:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a value from field by selection - Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303174#M405908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample of where you are trying this? because I don't see a reason for e() to not work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 10:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303174#M405908</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-22T10:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a value from field by selection - Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303175#M405909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes its quite odd,&amp;nbsp; with e() it gives me a null value as-well. i am very new to Qlikview, but i am quite sure i didnt make a simple syntax error or something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation is done in a text field, the expression is the same as above: &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: 12px; background-color: #f2f2f2;"&gt;num(SUM({$&amp;lt;ClientID -={1,55}&amp;gt;} Hours)/SUM({$&amp;lt;ProjectID = {$(vVar1)} &amp;gt;} Hours), ' #,##0.0%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;or for e()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;num(SUM({$&amp;lt;ClientID -={1,55}&amp;gt;} Hours)/SUM({$&amp;lt;ProjectID = e(ProjectID)&amp;gt;} Hours), ' #,##0.0%')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 11:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303175#M405909</guid>
      <dc:creator>aunahsan</dc:creator>
      <dc:date>2017-05-22T11:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding a value from field by selection - Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303176#M405910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking at this after making a selection in ProjectID? If not, then try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(GetSelectedCount(ProjectID) = 0, Num(Sum({$&amp;lt;ClientID -={1,55}&amp;gt;} Hours)/Sum(Hours), ' #,##0.0%'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(Sum({$&amp;lt;ClientID -={1,55}&amp;gt;} Hours)/Sum({$&amp;lt;ProjectID = e(ProjectID)&amp;gt;} Hours), ' #,##0.0%'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 15:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-a-value-from-field-by-selection-Set-analysis/m-p/1303176#M405910</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-22T15:08:05Z</dc:date>
    </item>
  </channel>
</rss>

