<?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: Difference between 1 and {1} - set modifiers in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Difference-between-1-and-1-set-modifiers/m-p/1814071#M66536</link>
    <description>&lt;P&gt;It's not really difference between 1 and {1}; because '1' alone i.e. - without curly brackets is not valid in set analysis. Now I will try to explain why you see the difference in behaviour in both scenarios.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;b) Count(&lt;FONT color="#FF0000"&gt;{1}&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;{&amp;lt;Customer={'X'}&lt;/FONT&gt;&amp;gt;}distinct [SaleNumber])&lt;/FONT&gt; - For this you are actually having two set analysis components separately(set analysis starts with '{' and ends with '}'), and in set analysis in such cases later one overrides the previous one. That means, in this case,&amp;nbsp;&amp;nbsp;{1} is invalid. Hence the result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And for your third case, it's a single set analysis (one staring '{' and one closing '}'), therefore it behaves as expected.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That means you need to write {1} only when you want to disregard ALL fields selection, like : &lt;FONT face="courier new,courier"&gt;Sum({1} Sales)&lt;/FONT&gt;. And use '{1&amp;lt;...' when want to disregard ALL fields with some additional conditions, like : &lt;FONT face="courier new,courier"&gt;Sum({1&amp;lt;ID={'$(=Max(ID))'} Sales)&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 07:40:47 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2021-06-10T07:40:47Z</dc:date>
    <item>
      <title>Difference between 1 and {1} - set modifiers</title>
      <link>https://community.qlik.com/t5/App-Development/Difference-between-1-and-1-set-modifiers/m-p/1814053#M66534</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Community, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have done a tonne of research and reading on qlik sense, but can't seem to get my head around the differences between {1} and 1 when it comes to set modifiers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example, for the following two expressions, I get the same result and both change as user selections are made on the filter:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a) Count({&amp;lt;Customer={'X'}&amp;gt;}distinct [SaleNumber]) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;b) Count({1}{&amp;lt;Customer={'X'}&amp;gt;}distinct [SaleNumber]) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, the following remains static, despite any chances in customer selections made:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;c) Count({1&amp;lt;Customer={'X'}&amp;gt;}distinct [SaleNumber]) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can someone please help explain what the difference is between set modifiers {1} and 1 and whether placement of the modifier has any impact?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 05:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Difference-between-1-and-1-set-modifiers/m-p/1814053#M66534</guid>
      <dc:creator>TankerK</dc:creator>
      <dc:date>2021-06-10T05:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between 1 and {1} - set modifiers</title>
      <link>https://community.qlik.com/t5/App-Development/Difference-between-1-and-1-set-modifiers/m-p/1814071#M66536</link>
      <description>&lt;P&gt;It's not really difference between 1 and {1}; because '1' alone i.e. - without curly brackets is not valid in set analysis. Now I will try to explain why you see the difference in behaviour in both scenarios.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;b) Count(&lt;FONT color="#FF0000"&gt;{1}&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;{&amp;lt;Customer={'X'}&lt;/FONT&gt;&amp;gt;}distinct [SaleNumber])&lt;/FONT&gt; - For this you are actually having two set analysis components separately(set analysis starts with '{' and ends with '}'), and in set analysis in such cases later one overrides the previous one. That means, in this case,&amp;nbsp;&amp;nbsp;{1} is invalid. Hence the result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And for your third case, it's a single set analysis (one staring '{' and one closing '}'), therefore it behaves as expected.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That means you need to write {1} only when you want to disregard ALL fields selection, like : &lt;FONT face="courier new,courier"&gt;Sum({1} Sales)&lt;/FONT&gt;. And use '{1&amp;lt;...' when want to disregard ALL fields with some additional conditions, like : &lt;FONT face="courier new,courier"&gt;Sum({1&amp;lt;ID={'$(=Max(ID))'} Sales)&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 07:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Difference-between-1-and-1-set-modifiers/m-p/1814071#M66536</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-06-10T07:40:47Z</dc:date>
    </item>
  </channel>
</rss>

