<?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 Outer Set Expression field ignored when value not present in data set in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Outer-Set-Expression-field-ignored-when-value-not-present-in/m-p/2053140#M86538</link>
    <description>&lt;P&gt;I am using Qlik Sense EoW Aug 2022 Patch 3. I am getting unusual results when using an Outer Set Expression.&lt;/P&gt;
&lt;P&gt;I am applying an Outer Set Expression to a master measure [Filled Positions]. When the value I use for the "Candidate Source" field does &lt;STRONG&gt;NOT&lt;/STRONG&gt; exist anywhere in the data set for the app the expression for that field is ignored.&lt;/P&gt;
&lt;P&gt;So this measure:&lt;/P&gt;
&lt;P&gt;({&amp;lt;[Snapshot Year]={"&amp;gt;=$(vPreviousYear_1)"},[Snapshot Month/Year]={"&amp;lt;=$(=Max([Snapshot Month/Year]))"},[Candidate Source]={'_UNKNOWN_'}&amp;gt;}[Filled Positions])&lt;/P&gt;
&lt;P&gt;Returns the same value as this measure when "_UNKNOWN_" is &lt;STRONG&gt;NOT&lt;/STRONG&gt; present in the data, but works correctly when "_UNKNOWN_"&lt;STRONG&gt; IS&lt;/STRONG&gt; present in the data:&lt;/P&gt;
&lt;P&gt;({&amp;lt;[Snapshot Year]={"&amp;gt;=$(vPreviousYear_1)"},[Snapshot Month/Year]={"&amp;lt;=$(=Max([Snapshot Month/Year]))"}&amp;gt;}[Filled Positions])&lt;/P&gt;
&lt;P&gt;If I create a new measure by copying my master measure [Filled Positions] and add the previous Outer Set Expression as an addition to the existing Inner Set Expression the result is correct, regardless of the presence of the "_UNKNOWN_" value in the data set.&lt;/P&gt;
&lt;P&gt;Count(distinct{&amp;lt;[Table]={'Days to Fill'},[Max Emp Offer Date Flag]={'Y'},[Snapshot Year]={"&amp;gt;=$(vPreviousYear_1)"},[Snapshot Month/Year]={"&amp;lt;=$(=Max([Snapshot Month/Year]))"},[Candidate Source]={'_UNKNOWN_'}&amp;gt;}[Job Req ID])&lt;/P&gt;
&lt;P&gt;Is this a bug with my version? I did not read anything in the Qlik Help site related to Outer Set Expressions saying that a field would be ignored if the value was not part of the data set. Because I use Outer Set Expressions often now, it is very disturbing to think that they will work correctly most of the time, but if a value is dropped from the data set entirely, a previously working measure can return erroneous results.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 23:40:31 GMT</pubDate>
    <dc:creator>davwade1</dc:creator>
    <dc:date>2023-03-24T23:40:31Z</dc:date>
    <item>
      <title>Outer Set Expression field ignored when value not present in data set</title>
      <link>https://community.qlik.com/t5/App-Development/Outer-Set-Expression-field-ignored-when-value-not-present-in/m-p/2053140#M86538</link>
      <description>&lt;P&gt;I am using Qlik Sense EoW Aug 2022 Patch 3. I am getting unusual results when using an Outer Set Expression.&lt;/P&gt;
&lt;P&gt;I am applying an Outer Set Expression to a master measure [Filled Positions]. When the value I use for the "Candidate Source" field does &lt;STRONG&gt;NOT&lt;/STRONG&gt; exist anywhere in the data set for the app the expression for that field is ignored.&lt;/P&gt;
&lt;P&gt;So this measure:&lt;/P&gt;
&lt;P&gt;({&amp;lt;[Snapshot Year]={"&amp;gt;=$(vPreviousYear_1)"},[Snapshot Month/Year]={"&amp;lt;=$(=Max([Snapshot Month/Year]))"},[Candidate Source]={'_UNKNOWN_'}&amp;gt;}[Filled Positions])&lt;/P&gt;
&lt;P&gt;Returns the same value as this measure when "_UNKNOWN_" is &lt;STRONG&gt;NOT&lt;/STRONG&gt; present in the data, but works correctly when "_UNKNOWN_"&lt;STRONG&gt; IS&lt;/STRONG&gt; present in the data:&lt;/P&gt;
&lt;P&gt;({&amp;lt;[Snapshot Year]={"&amp;gt;=$(vPreviousYear_1)"},[Snapshot Month/Year]={"&amp;lt;=$(=Max([Snapshot Month/Year]))"}&amp;gt;}[Filled Positions])&lt;/P&gt;
&lt;P&gt;If I create a new measure by copying my master measure [Filled Positions] and add the previous Outer Set Expression as an addition to the existing Inner Set Expression the result is correct, regardless of the presence of the "_UNKNOWN_" value in the data set.&lt;/P&gt;
&lt;P&gt;Count(distinct{&amp;lt;[Table]={'Days to Fill'},[Max Emp Offer Date Flag]={'Y'},[Snapshot Year]={"&amp;gt;=$(vPreviousYear_1)"},[Snapshot Month/Year]={"&amp;lt;=$(=Max([Snapshot Month/Year]))"},[Candidate Source]={'_UNKNOWN_'}&amp;gt;}[Job Req ID])&lt;/P&gt;
&lt;P&gt;Is this a bug with my version? I did not read anything in the Qlik Help site related to Outer Set Expressions saying that a field would be ignored if the value was not part of the data set. Because I use Outer Set Expressions often now, it is very disturbing to think that they will work correctly most of the time, but if a value is dropped from the data set entirely, a previously working measure can return erroneous results.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 23:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Outer-Set-Expression-field-ignored-when-value-not-present-in/m-p/2053140#M86538</guid>
      <dc:creator>davwade1</dc:creator>
      <dc:date>2023-03-24T23:40:31Z</dc:date>
    </item>
  </channel>
</rss>

