<?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 Dealing With Partial Data In Total Row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dealing-With-Partial-Data-In-Total-Row/m-p/522562#M556543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, this could be difficult to explain, so bear with me.&amp;nbsp; I have a pivot table that uses set analysis and/or alternate states in most of its columns.&amp;nbsp; The user can select Insurer A and Insurer B to compare the two's rates for particular codes.&amp;nbsp; The table looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 532px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl70" height="40" style="text-align: center;" width="64"&gt;Co&lt;STRONG&gt;de&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="64"&gt;&lt;STRONG&gt;Ins. A Revenue&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="64"&gt;&lt;STRONG&gt;Ins. A Cases&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="77"&gt;&lt;STRONG&gt;Ins. A Rate/Case&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="64"&gt;&lt;STRONG&gt;Ins. B Revenue&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="64"&gt;&lt;STRONG&gt;Ins. B Cases&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="71"&gt;&lt;STRONG&gt;Ins. B Rate/Case&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="64"&gt;&lt;STRONG&gt;% of Ins. A&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 2,815 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 2,815 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 5,325 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 2,663 &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;94.58%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;101&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt; -&lt;/TD&gt;&lt;TD class="xl63" style="border-top-style: none; border-left-style: none; text-align: center;"&gt; -&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt; - &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 5,276 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 2,638 &lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;102&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 3,240 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,620 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 9,546 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;6&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,591 &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;98.21%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-style: none; text-align: right;"&gt;103&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 6,233 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 2,078 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 11,546 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;7&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,649 &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;79.39%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-style: none; text-align: right;"&gt;104&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,842 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,842 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 3,748 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,249 &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;67.82%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="20" style="border-top-style: none; text-align: center;"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt; $ 14,130 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt;7&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt; $ 2,019 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt; $ 35,441 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt;20&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt; $ 1,772 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt;87.79%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last column should show Ins. B's Rate/Case divided by Ins. A's Rate/Case, as a percentage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works great when the data is complete.&amp;nbsp; However, note that Ins. A has no cases for Code 101.&amp;nbsp; This skews the grand total in the "% of Ins. A" column because it includes Ins. B's data for Code 101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is exclude Code 101 when figuring out Ins. B's Rate/Case, but only in the total row for "% of Ins. A."&amp;nbsp; When I do so manually, the total "Ins. B Sum" becomes $30,165, divided by the total "Ins. B Cases" of 18, which gives me a total "Ins. B Rate/Case" of $1,676, for a "% of Ins. A" of 83.02%, not the 87.79% shown.&amp;nbsp; (Note that I don't want to exclude Code 101's data from the other columns in the Total row, only the "% of Ins A" column.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never know in advance what two insurers the user will select, so I don't know if Ins. A or Ins. B will have no cases for a particular code.&amp;nbsp; I have to allow for either possiblity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The drop-down list from which the user selects Ins. A is set to the alternate state "InsA."&amp;nbsp; There is no alternate state for Ins B.&amp;nbsp; To further complicate matters, Ins. A can include any Classes the user has selected, while Ins. B can include only Classes 1 and 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I use for the "% of Ins A." column is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(SUM({InsA&amp;lt;@ID=P({$&amp;lt;@Class={$(vClass)},&amp;gt;}@ID)&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/SUM({InsA&amp;lt;@ID=P({$&amp;lt;@Class={$(vClass)}=&amp;gt;}@ID)&amp;gt;}Cases))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(SUM({$&amp;lt;@ID=P({$&amp;lt;@Class={1,2}=&amp;gt;}@ID)&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/SUM({$&amp;lt;@ID=P({$&amp;lt;@Class={1,2}&amp;gt;}@ID)&amp;gt;}Cases))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works great on every row except the total.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2013 18:43:54 GMT</pubDate>
    <dc:creator>billbois</dc:creator>
    <dc:date>2013-06-28T18:43:54Z</dc:date>
    <item>
      <title>Dealing With Partial Data In Total Row</title>
      <link>https://community.qlik.com/t5/QlikView/Dealing-With-Partial-Data-In-Total-Row/m-p/522562#M556543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, this could be difficult to explain, so bear with me.&amp;nbsp; I have a pivot table that uses set analysis and/or alternate states in most of its columns.&amp;nbsp; The user can select Insurer A and Insurer B to compare the two's rates for particular codes.&amp;nbsp; The table looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 532px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl70" height="40" style="text-align: center;" width="64"&gt;Co&lt;STRONG&gt;de&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="64"&gt;&lt;STRONG&gt;Ins. A Revenue&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="64"&gt;&lt;STRONG&gt;Ins. A Cases&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="77"&gt;&lt;STRONG&gt;Ins. A Rate/Case&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="64"&gt;&lt;STRONG&gt;Ins. B Revenue&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="64"&gt;&lt;STRONG&gt;Ins. B Cases&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="71"&gt;&lt;STRONG&gt;Ins. B Rate/Case&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left-style: none; text-align: center;" width="64"&gt;&lt;STRONG&gt;% of Ins. A&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 2,815 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 2,815 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 5,325 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 2,663 &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;94.58%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;101&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt; -&lt;/TD&gt;&lt;TD class="xl63" style="border-top-style: none; border-left-style: none; text-align: center;"&gt; -&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: center;"&gt; - &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 5,276 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 2,638 &lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;102&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 3,240 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,620 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 9,546 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;6&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,591 &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;98.21%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-style: none; text-align: right;"&gt;103&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 6,233 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 2,078 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 11,546 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;7&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,649 &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;79.39%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-style: none; text-align: right;"&gt;104&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,842 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,842 &lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 3,748 &lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top-style: none; border-left-style: none; text-align: right;"&gt; $ 1,249 &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;67.82%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="20" style="border-top-style: none; text-align: center;"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt; $ 14,130 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt;7&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt; $ 2,019 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt; $ 35,441 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt;20&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt; $ 1,772 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top-style: none; border-left-style: none; text-align: right;"&gt;&lt;STRONG&gt;87.79%&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last column should show Ins. B's Rate/Case divided by Ins. A's Rate/Case, as a percentage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works great when the data is complete.&amp;nbsp; However, note that Ins. A has no cases for Code 101.&amp;nbsp; This skews the grand total in the "% of Ins. A" column because it includes Ins. B's data for Code 101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is exclude Code 101 when figuring out Ins. B's Rate/Case, but only in the total row for "% of Ins. A."&amp;nbsp; When I do so manually, the total "Ins. B Sum" becomes $30,165, divided by the total "Ins. B Cases" of 18, which gives me a total "Ins. B Rate/Case" of $1,676, for a "% of Ins. A" of 83.02%, not the 87.79% shown.&amp;nbsp; (Note that I don't want to exclude Code 101's data from the other columns in the Total row, only the "% of Ins A" column.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never know in advance what two insurers the user will select, so I don't know if Ins. A or Ins. B will have no cases for a particular code.&amp;nbsp; I have to allow for either possiblity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The drop-down list from which the user selects Ins. A is set to the alternate state "InsA."&amp;nbsp; There is no alternate state for Ins B.&amp;nbsp; To further complicate matters, Ins. A can include any Classes the user has selected, while Ins. B can include only Classes 1 and 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I use for the "% of Ins A." column is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(SUM({InsA&amp;lt;@ID=P({$&amp;lt;@Class={$(vClass)},&amp;gt;}@ID)&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/SUM({InsA&amp;lt;@ID=P({$&amp;lt;@Class={$(vClass)}=&amp;gt;}@ID)&amp;gt;}Cases))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;(SUM({$&amp;lt;@ID=P({$&amp;lt;@Class={1,2}=&amp;gt;}@ID)&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;/SUM({$&amp;lt;@ID=P({$&amp;lt;@Class={1,2}&amp;gt;}@ID)&amp;gt;}Cases))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works great on every row except the total.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 18:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dealing-With-Partial-Data-In-Total-Row/m-p/522562#M556543</guid>
      <dc:creator>billbois</dc:creator>
      <dc:date>2013-06-28T18:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing With Partial Data In Total Row</title>
      <link>https://community.qlik.com/t5/QlikView/Dealing-With-Partial-Data-In-Total-Row/m-p/522563#M556544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Monday morning bump.&amp;nbsp; Thanks to everyone who's looked at this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 16:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dealing-With-Partial-Data-In-Total-Row/m-p/522563#M556544</guid>
      <dc:creator>billbois</dc:creator>
      <dc:date>2013-07-01T16:08:15Z</dc:date>
    </item>
  </channel>
</rss>

