<?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 Is it a bug if the Set Analysis includes all rows where a field with only Null values is referenced? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Is-it-a-bug-if-the-Set-Analysis-includes-all-rows-where-a-field/m-p/2414988#M95010</link>
    <description>&lt;P&gt;I just came across this interesting Qlik behavior. Let's say I have a measure expression based on the following set analysis:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;Sum({&amp;lt; County={'US'}, Quarter={'QTD'}, PremierItemFlag={'1'} &amp;gt;}revenue)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Ordinarily I would expect the formula to only include rows where the Country field = US, the Quarter field = QTD, and the PremierItemFlag = 1.&lt;/P&gt;
&lt;P&gt;Unexpectedly, with today's data refresh, there was an upstream issue that caused the PremierItemFlag to be set to&amp;nbsp;&lt;STRONG&gt;NULL&lt;/STRONG&gt; for every single row. However, the set analysis did not behave the way I would have expected. Rather than excluding&amp;nbsp;&lt;EM&gt;all&lt;/EM&gt; rows from the Set Analysis, because PremierItemFlag was&amp;nbsp;&lt;STRONG&gt;NULL&lt;/STRONG&gt; for all rows, and not 1 for any, the set analysis&amp;nbsp;&lt;EM&gt;included all&lt;/EM&gt; rows. In other words, the PremierItemFlag={'1'} portion of the set analysis had no effect, and it appears to be because that field is&amp;nbsp;&lt;STRONG&gt;NULL&lt;/STRONG&gt; for every row in that table.&lt;/P&gt;
&lt;P&gt;What I want to know is, has anyone else ever seen this behavior before, and is it a bug? Or is it working as designed? I know if this were an SQL query, the PremierItemFlag = '1' clause would always evaluate to&amp;nbsp;&lt;STRONG&gt;false&lt;/STRONG&gt; if that column were&amp;nbsp;&lt;STRONG&gt;NULL&lt;/STRONG&gt; for every row. But in this case, it seems to be completely ignoring that constraint.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2024 16:31:42 GMT</pubDate>
    <dc:creator>mplautz</dc:creator>
    <dc:date>2024-02-05T16:31:42Z</dc:date>
    <item>
      <title>Is it a bug if the Set Analysis includes all rows where a field with only Null values is referenced?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-a-bug-if-the-Set-Analysis-includes-all-rows-where-a-field/m-p/2414988#M95010</link>
      <description>&lt;P&gt;I just came across this interesting Qlik behavior. Let's say I have a measure expression based on the following set analysis:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;Sum({&amp;lt; County={'US'}, Quarter={'QTD'}, PremierItemFlag={'1'} &amp;gt;}revenue)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Ordinarily I would expect the formula to only include rows where the Country field = US, the Quarter field = QTD, and the PremierItemFlag = 1.&lt;/P&gt;
&lt;P&gt;Unexpectedly, with today's data refresh, there was an upstream issue that caused the PremierItemFlag to be set to&amp;nbsp;&lt;STRONG&gt;NULL&lt;/STRONG&gt; for every single row. However, the set analysis did not behave the way I would have expected. Rather than excluding&amp;nbsp;&lt;EM&gt;all&lt;/EM&gt; rows from the Set Analysis, because PremierItemFlag was&amp;nbsp;&lt;STRONG&gt;NULL&lt;/STRONG&gt; for all rows, and not 1 for any, the set analysis&amp;nbsp;&lt;EM&gt;included all&lt;/EM&gt; rows. In other words, the PremierItemFlag={'1'} portion of the set analysis had no effect, and it appears to be because that field is&amp;nbsp;&lt;STRONG&gt;NULL&lt;/STRONG&gt; for every row in that table.&lt;/P&gt;
&lt;P&gt;What I want to know is, has anyone else ever seen this behavior before, and is it a bug? Or is it working as designed? I know if this were an SQL query, the PremierItemFlag = '1' clause would always evaluate to&amp;nbsp;&lt;STRONG&gt;false&lt;/STRONG&gt; if that column were&amp;nbsp;&lt;STRONG&gt;NULL&lt;/STRONG&gt; for every row. But in this case, it seems to be completely ignoring that constraint.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 16:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-a-bug-if-the-Set-Analysis-includes-all-rows-where-a-field/m-p/2414988#M95010</guid>
      <dc:creator>mplautz</dc:creator>
      <dc:date>2024-02-05T16:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it a bug if the Set Analysis includes all rows where a field with only Null values is referenced?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-a-bug-if-the-Set-Analysis-includes-all-rows-where-a-field/m-p/2415158#M95031</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/57851"&gt;@mplautz&lt;/a&gt;&amp;nbsp;It is important how the flag designed?&amp;nbsp;&lt;SPAN&gt;PremierItemFlag, Is this straight field from DB or some transformation in Qlik?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 05:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-a-bug-if-the-Set-Analysis-includes-all-rows-where-a-field/m-p/2415158#M95031</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-02-06T05:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is it a bug if the Set Analysis includes all rows where a field with only Null values is referenced?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-a-bug-if-the-Set-Analysis-includes-all-rows-where-a-field/m-p/2415325#M95046</link>
      <description>&lt;P&gt;It's working as designed because it's not a where-clause on a row-level else a flagging on a column-level respectively the set analysis worked like a selection. If a field has no values you couldn't select anything which means that such action is ignored.&lt;/P&gt;
&lt;P&gt;I think the only way to prevent unexpected results would be an appropriate data-quality handling in the script-level.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 09:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-a-bug-if-the-Set-Analysis-includes-all-rows-where-a-field/m-p/2415325#M95046</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-02-06T09:59:05Z</dc:date>
    </item>
  </channel>
</rss>

