<?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: Expression for set analysis! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-for-set-analysis/m-p/596965#M1120638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You don't need specially a set analysis here, you could use a simple if, moreover if you want a 0 instead of a null in the chart :&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;&lt;BR /&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;=if(TaxAmount=0, 0, sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CustomsValue+DutyValue&lt;/SPAN&gt;)*0.20)&lt;BR /&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;&lt;BR /&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;otherwise try&lt;BR /&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;&lt;BR /&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;=sum({$&amp;lt;TaxAmount={"=0"} &amp;gt;} CustomsValue+DutyValue)*0.20&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;&lt;BR /&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;and force replace null by 0 in the presentation tab of the chart.&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;&lt;BR /&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;Michael&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Feb 2014 12:26:31 GMT</pubDate>
    <dc:creator>agilos_mla</dc:creator>
    <dc:date>2014-02-02T12:26:31Z</dc:date>
    <item>
      <title>Expression for set analysis!</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-set-analysis/m-p/596964#M1120637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help here with the following expression in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Tax amount is 0 then 0 else We need to add 2 dimensions (CustomsValue+DutyValue) * 20%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Tried following below, But i do not get any error , But also data is not getting calculated or displayed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;TaxAmount={0} &amp;gt;}0,(CustomsValue+DutyValue)*0.20)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 11:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-set-analysis/m-p/596964#M1120637</guid>
      <dc:creator />
      <dc:date>2014-02-02T11:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for set analysis!</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-set-analysis/m-p/596965#M1120638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You don't need specially a set analysis here, you could use a simple if, moreover if you want a 0 instead of a null in the chart :&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;&lt;BR /&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;=if(TaxAmount=0, 0, sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CustomsValue+DutyValue&lt;/SPAN&gt;)*0.20)&lt;BR /&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;&lt;BR /&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;otherwise try&lt;BR /&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;&lt;BR /&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;=sum({$&amp;lt;TaxAmount={"=0"} &amp;gt;} CustomsValue+DutyValue)*0.20&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;&lt;BR /&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;and force replace null by 0 in the presentation tab of the chart.&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;&lt;BR /&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;Michael&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 12:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-set-analysis/m-p/596965#M1120638</guid>
      <dc:creator>agilos_mla</dc:creator>
      <dc:date>2014-02-02T12:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for set analysis!</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-set-analysis/m-p/596966#M1120639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you want to aggregate across several rows, where TaxAmount may be not unambiguous and need to be evaluated per row. So you need to include your condition in an aggregation function, not the other way round:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum( if(TaxAmount &amp;lt;&amp;gt; 0, rangesum(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CustomsValue,DutyValue&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;) ) * 0.20&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 13:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-set-analysis/m-p/596966#M1120639</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-02T13:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for set analysis!</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-set-analysis/m-p/596967#M1120640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sweuhl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi micheal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer also. Iam trying to completely not use IF statement as it hinderes the performance completely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 07:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-set-analysis/m-p/596967#M1120640</guid>
      <dc:creator />
      <dc:date>2014-02-04T07:42:46Z</dc:date>
    </item>
  </channel>
</rss>

