<?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 Conditional Sum with data in 3 different tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Sum-with-data-in-3-different-tables/m-p/549780#M205364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;Hello All Qlikview Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&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; I have a query related to condition sum. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;Consider I have 3 Tables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;Table11 contains data for a product (ProductId), LookbackSalesWeeks &amp;amp; LookbackSalesDays. This is a strategic table where user specifies, how many weeks of sales history they want depending on product category.&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="331"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD rowspan="2" style="border: solid windowtext 1.0pt; border-bottom: solid black 1.0pt; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;Product Category&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD rowspan="2" style="border: solid windowtext 1.0pt; border-left: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;LookbackSalesWeeks &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD rowspan="2" style="border: solid windowtext 1.0pt; border-left: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;LookbackSalesDays&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;A1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;A1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;42&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;15&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;105&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;42&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;C2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;8&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;56&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;Q1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;35&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;Q2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;70&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;Table 22 is having data relating ProductID to its category and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;Table33 is showing sales done in past couple of weeks/Months, with Fields like ProductId, salesdate, and salesweek (weekstart date of monday)&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt;" width="314"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="2" nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="160"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: #c00000;"&gt;Table22&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;ProductID&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;Product Category&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;A1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4121&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;Q1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4225&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;A1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4553&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5339&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6390&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6463&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;A1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5508&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;Q1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt;" width="720"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="2" nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="194"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: #c00000;"&gt;Table33&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;ProductID&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;SalesDate&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;SalesWeek (LastMonday)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/4/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;9/30/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;46775.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4121&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/10/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/7/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;5345.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4225&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/22/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/21/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;746345.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4553&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/17/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/14/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;62209.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5339&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;11/5/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;11/4/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;595782.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6390&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;9/12/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;9/9/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;34892.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5339&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;8/21/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;8/19/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;790926.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6463&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;11/29/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;11/25/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;559925.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5508&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;12/12/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;12/9/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;98519.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5339&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;8/29/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;8/26/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;486529.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt; Based on the &lt;/SPAN&gt;&lt;STRONG style="color: #c00000;"&gt;LookbackSalesWeeks / LookbackSalesDays &amp;amp; Product Category, &lt;/STRONG&gt;&lt;SPAN style="color: #c00000;"&gt;we need to find out the past sales for a product based on days and Product Code combination.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;For Example – Product Id “5339” is having Product Category “B2”. So we need to have all these fields (Id, Code, LookBackSales Days &amp;amp; Weeks) in One table with combined sales in last 15 weeks or 105 Days starting from Todays date (Date on which the document is opened, i.e. today, we will need all sales for Product 5339 in last 15 weeks since 26-Aug-2013). &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Dec 2013 17:00:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-09T17:00:47Z</dc:date>
    <item>
      <title>Conditional Sum with data in 3 different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Sum-with-data-in-3-different-tables/m-p/549780#M205364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;Hello All Qlikview Experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&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; I have a query related to condition sum. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;Consider I have 3 Tables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;Table11 contains data for a product (ProductId), LookbackSalesWeeks &amp;amp; LookbackSalesDays. This is a strategic table where user specifies, how many weeks of sales history they want depending on product category.&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="331"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD rowspan="2" style="border: solid windowtext 1.0pt; border-bottom: solid black 1.0pt; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;Product Category&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD rowspan="2" style="border: solid windowtext 1.0pt; border-left: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;LookbackSalesWeeks &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD rowspan="2" style="border: solid windowtext 1.0pt; border-left: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;LookbackSalesDays&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;A1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;A1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;42&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;15&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;105&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;42&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;C2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;8&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;56&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;Q1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;35&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="65"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;Q2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="139"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="128"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;70&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;Table 22 is having data relating ProductID to its category and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;Table33 is showing sales done in past couple of weeks/Months, with Fields like ProductId, salesdate, and salesweek (weekstart date of monday)&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt;" width="314"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="2" nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="160"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: #c00000;"&gt;Table22&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;ProductID&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;Product Category&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;A1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4121&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;Q1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4225&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;A1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4553&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5339&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6390&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;B1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6463&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;A1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5508&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="69"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;Q1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="margin-left: 4.65pt;" width="720"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="2" nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="194"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;SPAN style="color: #c00000;"&gt;Table33&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;ProductID&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;SalesDate&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;SalesWeek (LastMonday)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; background: #F2DCDB; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.05pt;"&gt;&lt;STRONG style="color: #c00000;"&gt;Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/4/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;9/30/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;46775.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4121&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/10/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/7/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;5345.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4225&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/22/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/21/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;746345.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;4553&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/17/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;10/14/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;62209.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5339&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;11/5/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;11/4/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;595782.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6390&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;9/12/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;9/9/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;34892.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5339&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;8/21/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;8/19/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;790926.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;6463&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;11/29/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;11/25/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;559925.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5508&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;12/12/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;12/9/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;98519.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="91"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;5339&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="103"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;8/29/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="119"&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 11.0pt;"&gt;&lt;SPAN style="color: #c00000;"&gt;8/26/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="94"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #c00000;"&gt;486529.00&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt; Based on the &lt;/SPAN&gt;&lt;STRONG style="color: #c00000;"&gt;LookbackSalesWeeks / LookbackSalesDays &amp;amp; Product Category, &lt;/STRONG&gt;&lt;SPAN style="color: #c00000;"&gt;we need to find out the past sales for a product based on days and Product Code combination.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #c00000;"&gt;For Example – Product Id “5339” is having Product Category “B2”. So we need to have all these fields (Id, Code, LookBackSales Days &amp;amp; Weeks) in One table with combined sales in last 15 weeks or 105 Days starting from Todays date (Date on which the document is opened, i.e. today, we will need all sales for Product 5339 in last 15 weeks since 26-Aug-2013). &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 17:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Sum-with-data-in-3-different-tables/m-p/549780#M205364</guid>
      <dc:creator />
      <dc:date>2013-12-09T17:00:47Z</dc:date>
    </item>
  </channel>
</rss>

