<?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: set analysis and if statement together in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-and-if-statement-together/m-p/73873#M768743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny but still I feel that below two expressions are different since both expressions are giving two different results when made a different selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Year, product = {'a'}&amp;gt;} sale)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='a',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When I make any new selection in Product field then below is the result.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206136_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2018 13:20:00 GMT</pubDate>
    <dc:creator>priya945</dc:creator>
    <dc:date>2018-06-25T13:20:00Z</dc:date>
    <item>
      <title>set analysis and if statement together</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-if-statement-together/m-p/73871#M768741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Being new to QV world, trying to understand set analysis and if statement together.&amp;nbsp; I have found below expression. Could someone help me to understand below in detail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/51016" target="_blank"&gt;If statement and set analysis togather&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='a',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks In advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Priya &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-if-statement-together/m-p/73871#M768741</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and if statement together</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-if-statement-together/m-p/73872#M768742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All you are doing here is to ignore selection in Year field and Counting those sales where Product = 'a'... this can also be written like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Year, product = {'a'}&amp;gt;} sale)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 12:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-if-statement-together/m-p/73872#M768742</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-25T12:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and if statement together</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-if-statement-together/m-p/73873#M768743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny but still I feel that below two expressions are different since both expressions are giving two different results when made a different selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Year, product = {'a'}&amp;gt;} sale)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='a',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When I make any new selection in Product field then below is the result.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206136_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 13:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-if-statement-together/m-p/73873#M768743</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2018-06-25T13:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and if statement together</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-if-statement-together/m-p/73874#M768744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;in simple words ,Normally when ever we have so many conditions we will go for Set Analysis on behalf of &lt;STRONG&gt;nested&lt;/STRONG&gt;-&lt;STRONG&gt;If&lt;/STRONG&gt; statements,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it means,&lt;STRONG&gt; sum set of data is separating from the entire set of data (Set Analysis).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;coming to your example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Year = we call this one &lt;STRONG&gt;By pass&lt;/STRONG&gt;ing the Filter ,simple example we are skipping the Filters which are user selections&lt;/P&gt;&lt;P&gt;in the field Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If(Product='a',Sale) here we are finding the amount of sales when product='a'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;='a',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;sale&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let us know if you didn't clear your doubt.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 13:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-if-statement-together/m-p/73874#M768744</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2018-06-25T13:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis and if statement together</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-and-if-statement-together/m-p/73875#M768745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will behave the same way now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;Year, product &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;*&lt;/SPAN&gt;= {'a'}&amp;gt;} sale)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read about the asterisk here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4663"&gt;Implicit Set Operators&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 15:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-and-if-statement-together/m-p/73875#M768745</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-25T15:29:58Z</dc:date>
    </item>
  </channel>
</rss>

