<?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: Custom total row calculation on straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-total-row-calculation-on-straight-table/m-p/758290#M1023986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this:&lt;/P&gt;&lt;P&gt;If(dimensionality()=0&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;, sum([Sales Covered])/sum([Sales Target])&lt;SPAN style="font-size: 13.3333330154419px;"&gt;, rangemax&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;([History Rate],InputFieldUserRate)&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Mar 2015 10:05:48 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-03-20T10:05:48Z</dc:date>
    <item>
      <title>Custom total row calculation on straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-total-row-calculation-on-straight-table/m-p/758289#M1023985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just started QlikView development recently for our sales team. I having some issue and unable to find a relevant solution. &lt;/P&gt;&lt;P&gt;So here is the details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 1307px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 64pt;" width="85"&gt;Employee ID&lt;/TD&gt;&lt;TD style="width: 62pt;" width="82"&gt;History Rate&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;Sales Target Q1&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;Sales Target Q2&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;Sales Target Q3&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;Sales Covered Q1&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;Sales Covered Q2&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;Sales Covered Q3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 64pt;" width="85"&gt;Emp 1&lt;/TD&gt;&lt;TD style="width: 62pt;" width="82"&gt;50%&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;200000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;190000&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;150000&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;150000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;110000&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;55000&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 64pt;" width="85"&gt;Emp 2&lt;/TD&gt;&lt;TD style="width: 62pt;" width="82"&gt;65%&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;350000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;300000&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;250000&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;280000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;200000&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;78000&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 64pt;" width="85"&gt;Emp 3&lt;/TD&gt;&lt;TD style="width: 62pt;" width="82"&gt;60%&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;180000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;100000&lt;/TD&gt;&lt;TD style="width: 108pt;" width="144"&gt;150000&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;125000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;80000&lt;/TD&gt;&lt;TD class="xl65" style="width: 113pt;" width="151"&gt;90000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a QlikView straight table as below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="124" style="width: 592px; height: 124px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 64pt;" width="85"&gt;Employee ID&lt;/TD&gt;&lt;TD style="width: 62pt;" width="82"&gt;History Rate&lt;/TD&gt;&lt;TD style="width: 95pt;" width="127"&gt;User Provided Rate&lt;/TD&gt;&lt;TD style="width: 96pt;" width="128"&gt;Rate (History/User)&lt;/TD&gt;&lt;TD style="width: 61pt;" width="81"&gt;Sales Target&lt;/TD&gt;&lt;TD style="width: 71pt;" width="95"&gt;Sales Covered&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 64pt;" width="85"&gt;Emp 1&lt;/TD&gt;&lt;TD style="width: 62pt;" width="82"&gt;50%&lt;/TD&gt;&lt;TD style="width: 95pt;" width="127"&gt;70%&lt;/TD&gt;&lt;TD style="width: 96pt;" width="128"&gt;70%&lt;/TD&gt;&lt;TD style="width: 61pt;" width="81"&gt;200000&lt;/TD&gt;&lt;TD style="width: 71pt;" width="95"&gt;150000&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 64pt;" width="85"&gt;Emp 2&lt;/TD&gt;&lt;TD style="width: 62pt;" width="82"&gt;65%&lt;/TD&gt;&lt;TD style="width: 95pt;" width="127"&gt;80%&lt;/TD&gt;&lt;TD style="width: 96pt;" width="128"&gt;80%&lt;/TD&gt;&lt;TD style="width: 61pt;" width="81"&gt;350000&lt;/TD&gt;&lt;TD style="width: 71pt;" width="95"&gt;280000&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 64pt;" width="85"&gt;Emp 3&lt;/TD&gt;&lt;TD style="width: 62pt;" width="82"&gt;60%&lt;/TD&gt;&lt;TD style="width: 95pt;" width="127"&gt;0%&lt;/TD&gt;&lt;TD style="width: 96pt;" width="128"&gt;60%&lt;/TD&gt;&lt;TD style="width: 61pt;" width="81"&gt;180000&lt;/TD&gt;&lt;TD style="width: 71pt;" width="95"&gt;125000&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 64pt;" width="85"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="width: 62pt;" width="82"&gt;&lt;/TD&gt;&lt;TD style="width: 95pt;" width="127"&gt;&lt;/TD&gt;&lt;TD style="width: 96pt;" width="128"&gt;&lt;/TD&gt;&lt;TD style="width: 61pt;" width="81"&gt;730000&lt;/TD&gt;&lt;TD style="width: 71pt;" width="95"&gt;555000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also a multibox in the dashboard that allow user to select 1 record at 1 time:&lt;/P&gt;&lt;P&gt;Selection menu:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;- Quarter 1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;- Quarter 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;- Quarter 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The column 'User Provided Rate' is a inputfield. Yes, it allow user to input value to this column. The 'Rate(History/User)' column will display the bigger value between 'History Rate' and 'User Provided Rate'. For example, Emp 1 has the user provided rate higher that the history rate then, this will display 70% in Emp 1 Rate(History/User). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The expression for the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;'Rate(History/User)' column is:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if([History Rate] &amp;gt;InputFieldUserRate,[History Rate],InputFieldUserRate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The InputFieldUserRate has been declared in script as INPUTFIELD.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;For the column named 'Sales Target', i added the expression that will detect the selection of the menu:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if(selection = 'Quarter 1', [Sales Target Q1],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if(selection = 'Quarter 2', [Sales Target Q2],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if(selection = 'Quarter 3', [Sales Target Q3],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The problem now is, I want to have a custom total row calculation for the 'Rate(History/User)' using the formula:&lt;/P&gt;&lt;P&gt;Total = Total of Sales Covered / Total of Sales Target&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way that I can think of is to add this rule to the column 'Rate(History/User)' expression. But, there is already pre-existing expression listed above and it is not related. So, the final table that I'm expecting to see is:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="124" style="width: 592px; height: 124px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="85"&gt;Employee ID&lt;/TD&gt;&lt;TD width="82"&gt;History Rate&lt;/TD&gt;&lt;TD width="127"&gt;User Provided Rate&lt;/TD&gt;&lt;TD width="128"&gt;Rate (History/User)&lt;/TD&gt;&lt;TD width="81"&gt;Sales Target&lt;/TD&gt;&lt;TD width="95"&gt;Sales Covered&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" width="85"&gt;Emp 1&lt;/TD&gt;&lt;TD width="82"&gt;50%&lt;/TD&gt;&lt;TD width="127"&gt;70%&lt;/TD&gt;&lt;TD width="128"&gt;70%&lt;/TD&gt;&lt;TD width="81"&gt;200000&lt;/TD&gt;&lt;TD width="95"&gt;150000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" width="85"&gt;Emp 2&lt;/TD&gt;&lt;TD width="82"&gt;65%&lt;/TD&gt;&lt;TD width="127"&gt;80%&lt;/TD&gt;&lt;TD width="128"&gt;80%&lt;/TD&gt;&lt;TD width="81"&gt;350000&lt;/TD&gt;&lt;TD width="95"&gt;280000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" width="85"&gt;Emp 3&lt;/TD&gt;&lt;TD width="82"&gt;60%&lt;/TD&gt;&lt;TD width="127"&gt;0%&lt;/TD&gt;&lt;TD width="128"&gt;60%&lt;/TD&gt;&lt;TD width="81"&gt;180000&lt;/TD&gt;&lt;TD width="95"&gt;125000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" width="85"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="82"&gt;&lt;/TD&gt;&lt;TD width="127"&gt;&lt;/TD&gt;&lt;TD width="128"&gt;&lt;SPAN style="color: #ff0000;"&gt;76%&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="81"&gt;&lt;SPAN style="color: #00ff00;"&gt;730000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="95"&gt;555000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;where &lt;SPAN style="color: #ff0000;"&gt;76% &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;= 555000 / &lt;SPAN style="color: #00ff00;"&gt;730000 &lt;SPAN style="color: #000000;"&gt;x 100&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Any advice or tips?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1 suggestion that friend is suggesting is to add a dummy row called 'Total' and then for each of the column, I need to add additional logic to filter it and only to display the right value (either SUM of the column or data from the field) and set the Total Mode to 'No Totals' which I think not a good idea.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 09:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-total-row-calculation-on-straight-table/m-p/758289#M1023985</guid>
      <dc:creator />
      <dc:date>2015-03-20T09:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom total row calculation on straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-total-row-calculation-on-straight-table/m-p/758290#M1023986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this:&lt;/P&gt;&lt;P&gt;If(dimensionality()=0&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;, sum([Sales Covered])/sum([Sales Target])&lt;SPAN style="font-size: 13.3333330154419px;"&gt;, rangemax&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;([History Rate],InputFieldUserRate)&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 10:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-total-row-calculation-on-straight-table/m-p/758290#M1023986</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-20T10:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom total row calculation on straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-total-row-calculation-on-straight-table/m-p/758291#M1023987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks but, problem is both 'Sales Covered' and 'Sales Target' columns is just column name and not field name...so it will end up 'bad field name' error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;For the column named 'Sales Target', i added the expression that will detect the selection of the menu:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;if(selection = 'Quarter 1', [Sales Target Q1],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;if(selection = 'Quarter 2', [Sales Target Q2],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;if(selection = 'Quarter 3', [Sales Target Q3],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;For 'Sales Covered', &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;i added the expression that will detect the selection of the menu:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;if(selection = 'Quarter 1', [Sales &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Covered&lt;/SPAN&gt;&amp;nbsp; Q1],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;if(selection = 'Quarter 2', [Sales &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Covered&lt;/SPAN&gt; Q2],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;if(selection = 'Quarter 3', [Sales &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Covered&lt;/SPAN&gt; Q3],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Any other easier/better way to resolve this? Sounds like I have add additional nested if statement before the SUM...&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 10:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-total-row-calculation-on-straight-table/m-p/758291#M1023987</guid>
      <dc:creator />
      <dc:date>2015-03-20T10:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom total row calculation on straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-total-row-calculation-on-straight-table/m-p/758292#M1023988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try using a pick match combination instead of the nested if statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Mar 2015 07:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-total-row-calculation-on-straight-table/m-p/758292#M1023988</guid>
      <dc:creator />
      <dc:date>2015-03-22T07:45:42Z</dc:date>
    </item>
  </channel>
</rss>

