<?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 Report Summary Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Report-Summary-Query/m-p/247000#M582821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Hi,&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="305434717-12102011"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;I have a table with&amp;nbsp; the following output&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 750px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 25.5pt;"&gt;&lt;TD class="xl24" height="34" style="border-width: 1pt 0.5pt 0.5pt; border-style: solid; border-color: silver; width: 143pt; height: 25.5pt; background-color: white;" width="190"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Customer&amp;nbsp;&amp;nbsp; Name&lt;/DIV&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 1pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;Product Code&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 1pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Item name&lt;/TD&gt;&lt;TD class="xl26" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;Actual&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;Forecast&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;Variance&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;1&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 1&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;249&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;249&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;2&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 2&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;21&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;41&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;20&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;51%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;3&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 3&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;378&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;390&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;12&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;97%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;4&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 4&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;316&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;202&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-114&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;157%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;5&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 5&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;112&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;115&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;97%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;6&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 6&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;84&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;115&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;31&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;73%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;7&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 7&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;42&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;48&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;6&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;87%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;8&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 8&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;82&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;37&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-45&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;220%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;9&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 9&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;126&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;160&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;79%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;10&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 10&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;48&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;259&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;211&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;19%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;11&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 11&lt;/TD&gt;&lt;TD class="xl33" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;1,064&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;830&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-234&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;128%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;12&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 12&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;76&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;74&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-2&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;102%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;13&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 13&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;9&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;29&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;20&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;31%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;14&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 14&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;13&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;13&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;15&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 15&lt;/TD&gt;&lt;TD class="xl33" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;7,300&lt;/TD&gt;&lt;TD class="xl33" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;1,762&lt;/TD&gt;&lt;TD class="xl33" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-5,538&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;414%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD class="xl34" style="border-width: 0px 0px 0.5pt; border-style: none none solid; border-color: windowtext windowtext silver; width: 56pt; background-color: white;" width="75"&gt;Total&lt;/TD&gt;&lt;TD class="xl34" style="border-width: 0px 0px 0.5pt; border-style: none none solid; border-color: windowtext windowtext silver; width: 172pt; background-color: white;" width="229"&gt;&lt;/TD&gt;&lt;TD class="xl35" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: windowtext silver silver windowtext; width: 48pt; background-color: white;" width="64"&gt;9,658&lt;/TD&gt;&lt;TD class="xl35" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: windowtext silver silver windowtext; width: 48pt; background-color: white;" width="64"&gt;4,325&lt;/TD&gt;&lt;TD class="xl35" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: windowtext silver silver windowtext; width: 48pt; background-color: white;" width="64"&gt;-5,333&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;223%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;What I would like to&amp;nbsp; do is summarise this output as below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;15&amp;nbsp; Products:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Bucket | No of&amp;nbsp; Products | % of Products&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;+/- 10% | 3 |&amp;nbsp; 20%&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;+/- 20% | 2 |&amp;nbsp; 13%&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;+/- 30% | 3 |&amp;nbsp; 20%&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&amp;gt;30% |7 |&amp;nbsp; 47%&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;NOTE: +/- 10% means the&amp;nbsp; forecast was between 90 and 110 % of the Actual, +/- 20% means between 80-89 and&amp;nbsp; 111-120 etc.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;This will allow&amp;nbsp; management to see how many products are close enough to forecast (within 30%) &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;so in the example&amp;nbsp; above 8 products are within 30% out of the 15 or 53% of&amp;nbsp; products&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;I have been trying&amp;nbsp; various combinations of aggr and count (and class) but cant get it to&amp;nbsp; work&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;The calculation for&amp;nbsp; the % figure is &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="305434717-12102011"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;DIV&gt;sum&lt;/DIV&gt;&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Forecast&amp;nbsp; Available]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Yes'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales.Unit2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Packs per&amp;nbsp; Case]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;BR /&gt;/&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Forecast&amp;nbsp; Available]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Yes'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Forecast_Packs&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;Brian&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2011 15:03:49 GMT</pubDate>
    <dc:creator>bdunphy</dc:creator>
    <dc:date>2011-10-13T15:03:49Z</dc:date>
    <item>
      <title>Report Summary Query</title>
      <link>https://community.qlik.com/t5/QlikView/Report-Summary-Query/m-p/247000#M582821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Hi,&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="305434717-12102011"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;I have a table with&amp;nbsp; the following output&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 750px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 25.5pt;"&gt;&lt;TD class="xl24" height="34" style="border-width: 1pt 0.5pt 0.5pt; border-style: solid; border-color: silver; width: 143pt; height: 25.5pt; background-color: white;" width="190"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Customer&amp;nbsp;&amp;nbsp; Name&lt;/DIV&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 1pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;Product Code&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 1pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Item name&lt;/TD&gt;&lt;TD class="xl26" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;Actual&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;Forecast&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;Variance&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;1&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 1&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;249&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;249&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;2&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 2&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;21&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;41&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;20&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;51%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;3&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 3&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;378&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;390&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;12&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;97%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;4&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 4&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;316&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;202&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-114&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;157%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;5&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 5&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;112&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;115&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;97%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;6&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 6&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;84&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;115&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;31&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;73%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;7&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 7&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;42&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;48&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;6&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;87%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;8&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 8&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;82&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;37&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-45&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;220%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;9&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 9&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;126&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;160&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;79%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;10&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 10&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;48&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;259&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;211&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;19%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;11&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 11&lt;/TD&gt;&lt;TD class="xl33" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;1,064&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;830&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-234&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;128%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;12&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 12&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;76&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;74&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-2&lt;/TD&gt;&lt;TD class="xl32" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;102%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;13&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 13&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;9&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;29&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;20&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;31%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;14&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 14&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;13&lt;/TD&gt;&lt;TD class="xl30" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;13&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD align="right" class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 56pt; background-color: white;" width="75"&gt;15&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 172pt; background-color: white;" width="229"&gt;Product 15&lt;/TD&gt;&lt;TD class="xl33" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;7,300&lt;/TD&gt;&lt;TD class="xl33" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;1,762&lt;/TD&gt;&lt;TD class="xl33" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-5,538&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;414%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: #333333 silver silver; width: 143pt; height: 12.75pt; background-color: white;" width="190"&gt;CUST A&lt;/TD&gt;&lt;TD class="xl34" style="border-width: 0px 0px 0.5pt; border-style: none none solid; border-color: windowtext windowtext silver; width: 56pt; background-color: white;" width="75"&gt;Total&lt;/TD&gt;&lt;TD class="xl34" style="border-width: 0px 0px 0.5pt; border-style: none none solid; border-color: windowtext windowtext silver; width: 172pt; background-color: white;" width="229"&gt;&lt;/TD&gt;&lt;TD class="xl35" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: windowtext silver silver windowtext; width: 48pt; background-color: white;" width="64"&gt;9,658&lt;/TD&gt;&lt;TD class="xl35" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: windowtext silver silver windowtext; width: 48pt; background-color: white;" width="64"&gt;4,325&lt;/TD&gt;&lt;TD class="xl35" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: windowtext silver silver windowtext; width: 48pt; background-color: white;" width="64"&gt;-5,333&lt;/TD&gt;&lt;TD class="xl31" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;223%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;What I would like to&amp;nbsp; do is summarise this output as below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;15&amp;nbsp; Products:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Bucket | No of&amp;nbsp; Products | % of Products&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;+/- 10% | 3 |&amp;nbsp; 20%&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;+/- 20% | 2 |&amp;nbsp; 13%&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;+/- 30% | 3 |&amp;nbsp; 20%&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;&amp;gt;30% |7 |&amp;nbsp; 47%&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;NOTE: +/- 10% means the&amp;nbsp; forecast was between 90 and 110 % of the Actual, +/- 20% means between 80-89 and&amp;nbsp; 111-120 etc.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;This will allow&amp;nbsp; management to see how many products are close enough to forecast (within 30%) &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;so in the example&amp;nbsp; above 8 products are within 30% out of the 15 or 53% of&amp;nbsp; products&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;I have been trying&amp;nbsp; various combinations of aggr and count (and class) but cant get it to&amp;nbsp; work&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;The calculation for&amp;nbsp; the % figure is &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="305434717-12102011"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;DIV&gt;sum&lt;/DIV&gt;&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Forecast&amp;nbsp; Available]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Yes'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales.Unit2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Packs per&amp;nbsp; Case]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;BR /&gt;/&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Forecast&amp;nbsp; Available]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Yes'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Forecast_Packs&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt; &lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;Brian&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 15:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-Summary-Query/m-p/247000#M582821</guid>
      <dc:creator>bdunphy</dc:creator>
      <dc:date>2011-10-13T15:03:49Z</dc:date>
    </item>
    <item>
      <title>Report Summary Query</title>
      <link>https://community.qlik.com/t5/QlikView/Report-Summary-Query/m-p/247001#M582822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;3 columns missing at end of spreadsheet during post. see below:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 144pt; border-collapse: collapse;" width="192"&gt;&lt;TBODY&gt;&lt;TR style="height: 25.5pt;"&gt;&lt;TD class="xl24" height="34" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 48pt; height: 25.5pt; background-color: white;" width="64"&gt;Forecast&lt;/TD&gt;&lt;TD class="xl24" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;Variance&lt;/TD&gt;&lt;TD class="xl24" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: silver silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;249&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;249&lt;/TD&gt;&lt;TD class="xl26" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;41&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;20&lt;/TD&gt;&lt;TD class="xl26" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;51%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;390&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;12&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;97%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;202&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-114&lt;/TD&gt;&lt;TD class="xl26" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;157%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;115&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;97%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;115&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;31&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;73%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;48&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;6&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;87%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;37&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-45&lt;/TD&gt;&lt;TD class="xl26" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;220%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;160&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;34&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;79%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;259&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;211&lt;/TD&gt;&lt;TD class="xl26" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;19%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;830&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-234&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;128%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;74&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-2&lt;/TD&gt;&lt;TD class="xl27" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;102%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;29&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;20&lt;/TD&gt;&lt;TD class="xl26" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;31%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl25" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;13&lt;/TD&gt;&lt;TD class="xl25" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;13&lt;/TD&gt;&lt;TD class="xl26" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;1,762&lt;/TD&gt;&lt;TD class="xl28" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: #333333 silver silver #333333; width: 48pt; background-color: white;" width="64"&gt;-5,538&lt;/TD&gt;&lt;TD class="xl26" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;414%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl29" height="17" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: windowtext silver silver windowtext; width: 48pt; height: 12.75pt; background-color: white;" width="64"&gt;4,325&lt;/TD&gt;&lt;TD class="xl29" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: windowtext silver silver windowtext; width: 48pt; background-color: white;" width="64"&gt;-5,333&lt;/TD&gt;&lt;TD class="xl26" style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: white silver silver white; width: 48pt; background-color: red;" width="64"&gt;223%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 17:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-Summary-Query/m-p/247001#M582822</guid>
      <dc:creator>bdunphy</dc:creator>
      <dc:date>2011-10-13T17:44:01Z</dc:date>
    </item>
  </channel>
</rss>

