<?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 - correct total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-correct-total/m-p/542935#M202873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex, I'm not really sure what you need from me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 10:00:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-11T10:00:39Z</dc:date>
    <item>
      <title>Set Analysis - correct total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-correct-total/m-p/542932#M202870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;I have the following expression in a pivot chart to calculate Current Year Premium based on the Previous Year Premium being nil. This works on a line by line basis, but the totals still include those figure where the prior year premiums are nil. Any idea how to overcome this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Prior Yr Premium]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0, 0,&lt;BR /&gt;sum(aggr((if(sum( {$&amp;lt;coveryear = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(#vLastmonthyearB)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, ptrantype = {'R', 'N'},&lt;BR /&gt;inscode = {'RS17','TW01'}, %BusinessClassLink = {'20.22.','23.22.','52.22.'}&amp;gt;} netprem) &amp;lt;= 0, '0',&lt;BR /&gt;sum( {$&amp;lt;coveryear = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(#vLastmonthyearB)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, ptrantype = {'R', 'N'},&lt;BR /&gt;inscode = {'RS17','TW01'}, %BusinessClassLink = {'20.22.','23.22.','52.22.'}&amp;gt;} netprem))),clntcode,covermonth))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Jayne&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 15:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-correct-total/m-p/542932#M202870</guid>
      <dc:creator />
      <dc:date>2013-10-10T15:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - correct total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-correct-total/m-p/542933#M202871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand this correctly, your problem is with the test of "&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Prior Yr Premium]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0" &lt;/SPAN&gt;&lt;BR /&gt; failing. I would start by reducing your expression to something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Prior Yr Premium]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0, 0,999999)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This will prove that the test is working, and this would avoid the need to debug the other four lines, which look a little fearsome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 16:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-correct-total/m-p/542933#M202871</guid>
      <dc:creator />
      <dc:date>2013-10-10T16:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - correct total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-correct-total/m-p/542934#M202872</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 you give us sample QVW or source?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same need last year and I used Dimensionality() to manipulate my Total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 08:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-correct-total/m-p/542934#M202872</guid>
      <dc:creator />
      <dc:date>2013-10-11T08:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - correct total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-correct-total/m-p/542935#M202873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex, I'm not really sure what you need from me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jayne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 10:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-correct-total/m-p/542935#M202873</guid>
      <dc:creator />
      <dc:date>2013-10-11T10:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - correct total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-correct-total/m-p/542936#M202874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well as I said a sample application (qvw) OR a sample source (excel or you can list an inline table here) OR the result table you want (where I can see the dimensions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't have any then that's okay. I can't explain it without showing a sample. Sorry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 10:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-correct-total/m-p/542936#M202874</guid>
      <dc:creator />
      <dc:date>2013-10-11T10:27:40Z</dc:date>
    </item>
  </channel>
</rss>

