<?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 analisys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586352#M543994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Andrea&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your script you can assign a flag for value of DtaApprovazione as '1' . Then you can use set analysis with '=' or otherwise you can use exclusion function also in set analysis.&lt;/P&gt;&lt;P&gt;e.g. Sum({$&amp;lt;Year = e({$&amp;lt;Year = {2014}&amp;gt;})&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Suhas Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2014 13:32:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-16T13:32:46Z</dc:date>
    <item>
      <title>set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586345#M543985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Hello to all&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;need&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;via set&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;analisys&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to calculate&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the sum of a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;field&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;only&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;values&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;​​of the field where&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the date&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;approval&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;valued.&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;I use&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the syntax&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;sum (&lt;/SPAN&gt;&lt;SPAN class="atn"&gt;{&lt;/SPAN&gt;&lt;SPAN class="atn"&gt;$ &amp;lt;&lt;/SPAN&gt;dtaApprovazione &lt;SPAN class="atn hps"&gt;= {&lt;/SPAN&gt;2014}&amp;gt;} &lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;the syntax is correct&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but I do not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;return anything&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;because the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;field&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;because the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;field&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;given&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the format dd /&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;mm /&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;yyyy,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;by&lt;/SPAN&gt; &lt;SPAN class="atn hps"&gt;year (&lt;/SPAN&gt;dtaApprovazione) &lt;SPAN class="atn hps"&gt;= {&lt;/SPAN&gt;2014}, it gives me &lt;SPAN class="hps"&gt;a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;syntax error.&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;actually what&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;should do&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to exclude data&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;where&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;DtaApprovazione&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;nothing&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;it seems to me&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that&lt;/SPAN&gt;&lt;SPAN class="atn"&gt;'s set-&lt;/SPAN&gt;analisys &lt;SPAN class="hps"&gt;only works&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;equal&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;comparison operator&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;(=) and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;not&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;different&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;(&amp;lt;&amp;gt;)&lt;/SPAN&gt;. &lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;Thanks for your cooperation&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;Andrea&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586345#M543985</guid>
      <dc:creator>warrentk80</dc:creator>
      <dc:date>2014-04-16T13:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586346#M543986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but you may use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{1-&amp;lt;your condition&amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586346#M543986</guid>
      <dc:creator />
      <dc:date>2014-04-16T13:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586347#M543988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;SPAN class="atn hps" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum (&lt;/SPAN&gt;&lt;SPAN class="atn" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="atn" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;dtaApprovazione &lt;/SPAN&gt;&lt;SPAN class="atn hps" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= {'*'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;will return all, except those are null.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586347#M543988</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-04-16T13:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586348#M543989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use -= &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give u a syntax error but will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(${&amp;lt; Year -={2014} &amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will sum Value for all years except 2014. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:18:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586348#M543989</guid>
      <dc:creator>joachim_boivie</dc:creator>
      <dc:date>2014-04-16T13:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586349#M543990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andrea,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the trouble free ways I like to deal with this type of analysis is by adding an extra field to the table during the load. In the above-mentioned case, you could add the following line of code to the concerned table load as such:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Year(dtaApprovazione) as anno&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Approvazione,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you will be able to use the following expression to filter on data related to year 2014:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="atn hps" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;/SPAN&gt;&lt;SPAN class="atn" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="atn" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$ &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;anno&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Approvazione&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="atn hps" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2014}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586349#M543990</guid>
      <dc:creator>pgrenier</dc:creator>
      <dc:date>2014-04-16T13:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586350#M543991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you not have Year in your Data model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can add Year in your model,It would be used like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Year = {2014}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586350#M543991</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-04-16T13:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586351#M543993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in set analysis you can also use the functions P() for possible values and E() for exlcuded values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586351#M543993</guid>
      <dc:creator>mambi</dc:creator>
      <dc:date>2014-04-16T13:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586352#M543994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Andrea&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your script you can assign a flag for value of DtaApprovazione as '1' . Then you can use set analysis with '=' or otherwise you can use exclusion function also in set analysis.&lt;/P&gt;&lt;P&gt;e.g. Sum({$&amp;lt;Year = e({$&amp;lt;Year = {2014}&amp;gt;})&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Suhas Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586352#M543994</guid>
      <dc:creator />
      <dc:date>2014-04-16T13:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586353#M543995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrea,&lt;/P&gt;&lt;P&gt;when the field is Null set analysis doesn't work.&lt;/P&gt;&lt;P&gt;Use if(IsNull(Field),.....,....)&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 14:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586353#M543995</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2014-04-16T14:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: set analisys</title>
      <link>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586354#M543996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;dtaApprovazione &lt;/SPAN&gt;= {'*2014'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 14:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analisys/m-p/586354#M543996</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-04-16T14:27:10Z</dc:date>
    </item>
  </channel>
</rss>

