<?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 set analysis vs if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-vs-if/m-p/1000115#M649414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lately I discovered the set analysis features for me and they seam to be quite helpful &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm struggeling a bit with the understanding and the cases when to use what. Maybe you can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting results for "where" conditions I was using before:&lt;/P&gt;&lt;P&gt;If(DimColor='green',Count(Field1),0) &lt;/P&gt;&lt;P&gt;or Count(If(D&lt;SPAN style="font-size: 13.3333px;"&gt;imColor='green',Field1,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For getting cumulated sums or counts I was using&lt;/P&gt;&lt;P&gt;Count(Total &amp;lt;Dim1, Dim2&amp;gt; Field1) or aggr() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And all of it was quite tricky and also depending whether the datamodel was one table or several rational connected tables.&lt;/P&gt;&lt;P&gt;Additionally sometimes I needed to ajust the datamodel so I could make it work using the above mentioned methods. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With set analysis it seems so easy to get the things work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So coming back to the question what are the differences of the methods and where should I use what?&lt;/P&gt;&lt;P&gt;Could you give me a quick guideline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//chesterluck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2015 07:14:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-09T07:14:58Z</dc:date>
    <item>
      <title>set analysis vs if</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-vs-if/m-p/1000115#M649414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lately I discovered the set analysis features for me and they seam to be quite helpful &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm struggeling a bit with the understanding and the cases when to use what. Maybe you can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting results for "where" conditions I was using before:&lt;/P&gt;&lt;P&gt;If(DimColor='green',Count(Field1),0) &lt;/P&gt;&lt;P&gt;or Count(If(D&lt;SPAN style="font-size: 13.3333px;"&gt;imColor='green',Field1,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For getting cumulated sums or counts I was using&lt;/P&gt;&lt;P&gt;Count(Total &amp;lt;Dim1, Dim2&amp;gt; Field1) or aggr() &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And all of it was quite tricky and also depending whether the datamodel was one table or several rational connected tables.&lt;/P&gt;&lt;P&gt;Additionally sometimes I needed to ajust the datamodel so I could make it work using the above mentioned methods. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With set analysis it seems so easy to get the things work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So coming back to the question what are the differences of the methods and where should I use what?&lt;/P&gt;&lt;P&gt;Could you give me a quick guideline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//chesterluck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 07:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-vs-if/m-p/1000115#M649414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T07:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis vs if</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-vs-if/m-p/1000116#M649415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis is like a selection, that is evaluated &lt;EM&gt;&lt;STRONG&gt;before&lt;/STRONG&gt;&lt;/EM&gt; the chart is built. I.e. it cannot be be evaluated row-by-row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See more on &lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, &lt;/SPAN&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3807"&gt;Conditional Aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 07:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-vs-if/m-p/1000116#M649415</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-09T07:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis vs if</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-vs-if/m-p/1000117#M649416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok but in case I have all the values from my datamodel and I dont want the sums and count to ajust after post selections (but really want to cumulate dimensions of my datamodel) then there is nothing wrong in using set analysis. &lt;/P&gt;&lt;P&gt;Or am I wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 08:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-vs-if/m-p/1000117#M649416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T08:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis vs if</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-vs-if/m-p/1000118#M649417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want the selections to affect the sums and counts, all you need to do is to use 1 as set definition instead of $, e.g. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp; Count({&lt;STRONG&gt;$&lt;/STRONG&gt;&amp;lt;D&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;imColor={'green'}&amp;gt;} Field1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp; Count({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;D&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;imColor={'green'}&amp;gt;} Field1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The top one will respect the selections, and the bottom one will not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HIC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 10:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-vs-if/m-p/1000118#M649417</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-09T10:13:16Z</dc:date>
    </item>
  </channel>
</rss>

