<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Data Modelling Challenge in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430242#M808877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Many thanks for your help&lt;/STRONG&gt;. However we still need to make certain changes as ER table should give numeric values not dates in Quantity or Value field. Plus can't we make Link_Model as the primary key instead of TblJoinkey?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have revised the data of PSI table and Aug'17 ER table. Would really appreciate if you could use this data and think on the changes that brings out the desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to get the following:&lt;/P&gt;&lt;P&gt;Sale Values and Quantities of 4 types: Actual,BP,IBP and Forecast. &lt;/P&gt;&lt;P&gt;Where all these will be for current month i.e. Aug'17 in our case, the Forecast has to be considered for next 6 months i.e From Sep'17 till Feb'18.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have attached the revised data to the original post and looking forward to your response!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Oct 2017 17:25:39 GMT</pubDate>
    <dc:creator>nickjose7</dc:creator>
    <dc:date>2017-10-12T17:25:39Z</dc:date>
    <item>
      <title>Data Modelling Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430235#M808865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/69783" target="_blank"&gt;antoniotiman&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/119406" target="_blank"&gt;franky_h79&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/253813" target="_blank"&gt;pradosh_thakur&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/56619" target="_blank"&gt;its.anandrjs&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Frank/Antonio/Pradosh/Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been taking help from all of you in the past week for this Data Model. Your Solutions have been really helpful and I wish to thank you all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I am somehow stuck in this and it has become a bit messy. Instead of sharing one by one problems I am sharing my sample data as well the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would really appreciate if you could try your hands at this Data Model and help me out. I have this product release in next 22 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Counting on your kind support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached excel contains the details of requirement as well as the sample data tables. First sheet of the excel tells what is to be extracted and what to be created. Rest of the worksheets are actual tables to be loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Nick Jose
Revised the sample data in tables: 'Aug'17 end result' and 'PSI Sep'17'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430235#M808865</guid>
      <dc:creator>nickjose7</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430236#M808868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field names in your XL file has sub field names... this would be really challenging.&lt;/P&gt;&lt;P&gt;Cus Embed lines would eliminate 1 or 2 line or maybe 3 but it wouldn't make sense here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suggestion, concatenate the tables with same fields, like BP and IBP&lt;/P&gt;&lt;P&gt;Aug-2017 and Sep 2017 etc&lt;/P&gt;&lt;P&gt;they have same field names.&lt;/P&gt;&lt;P&gt;Plus Aug'17 or Mar'17 would also be hard to convert into months or dates. Rather it should be Aug-2017 or Aug-17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe others might have different approach on this, I gave you my opinion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 19:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430236#M808868</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2017-10-10T19:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430237#M808870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see if following will help, if so we can expand it to other worksheets, your exclude, include criterias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DMChallenge.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179185_DMChallenge.PNG" style="width: 620px; height: 180px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DMChallenge2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/179186_DMChallenge2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; SaleRegisterReadTmp:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 3) &amp;amp; '/01/' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 2),'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Item&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 3) &amp;amp; '/01/' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 2),'MMM/DD/YY')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Bill Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[BP Group]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Product Group]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Mat. Descrip]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Division&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Item&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sales Organization]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Distribution Channel]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Gross Price Amt(INR)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; [..\Data\Final.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; [Sale Register])&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Where Match(Division, 'CSD' , 'SSD', 'Mobile') // Filtering can be done later or while loading&lt;BR /&gt; &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;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; BPReadTmp:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Models&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty3]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value3]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty4]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value4]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS4&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty5]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value5]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS5&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty6]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value6]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS6&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty7]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value7]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS7&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty8]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value8]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS8&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty9]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value9]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS9&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty10]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value10]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS10&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty11]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value11]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS11&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty12]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value12]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS12&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty13]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value13]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS13&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty14]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value14]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS14&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty15]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value15]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS15&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty16]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value16]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS16&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty17]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value17]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS17&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty18]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value18]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS18&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty19]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value19]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS19&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty20]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value20]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS20&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty21]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value21]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS21&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; [..\Data\Final.xlsx]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;header&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;lines&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BP);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; Table_BP:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Apr/01/17', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty10]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value10]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS10&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('May/01/17', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty11]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value11]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS11&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Jun/01/17', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty12]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value12]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS12&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Jul/01/17', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty13]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value13]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS13&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Aug/01/17', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty14]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value14]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS14&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Sep/01/17', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty15]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value15]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS15&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Oct/01/17', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty16]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value16]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS16&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Nov/01/17', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty17]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value17]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS17&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Dec/01/17', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty18]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value18]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS18&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Jan/01/18', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty19]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value19]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS19&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Feb/01/18', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty20]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value20]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS20&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Mar/01/18', 'MMM/DD/YY')) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TblJoinkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Link_Model_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Qty21]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Quantity_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sale Value21]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sale_Value_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS21&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;COGS_BP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; BPReadTmp;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 23:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430237#M808870</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-10T23:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430238#M808871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This appears to be fine. Kindly share the rest of the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 10:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430238#M808871</guid>
      <dc:creator>nickjose7</dc:creator>
      <dc:date>2017-10-11T10:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430239#M808872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad to know that it is in the right direction. I hope it gave you a direction to continue with your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to keep you informed that it will take a while for me to continue expanding on your detail requirements as I have my own work and I'll be only able to spend time when I'll have an opportunity in between my tasks or when I've free time. I would encourage you to leverage the file I've attached to include other data in a similar way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get stuck then please feel free to ask for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 16:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430239#M808872</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-11T16:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430240#M808874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the structure . I would clean it up and add criteria or use criteria in calculation. I would opt not create the aggregate table but construct formulas for dashboard need in the chart. May be variables for reuse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales by Model Aug'17 - CSD looks like aggregate table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From all Tables I would drop certain values as can be seen from screen shot below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TblJoinKeyValuesToBeDropped&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TblJoinKeyValuesToBeDropped.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179292_TblJoinKeyValuesToBeDropped.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DMChallenge3.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/179293_DMChallenge3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if you have any questions or need more help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 18:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430240#M808874</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-11T18:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430241#M808875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you were able to make progress with information I have provided. Let us know if any further help is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 15:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430241#M808875</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-12T15:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430242#M808877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Many thanks for your help&lt;/STRONG&gt;. However we still need to make certain changes as ER table should give numeric values not dates in Quantity or Value field. Plus can't we make Link_Model as the primary key instead of TblJoinkey?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have revised the data of PSI table and Aug'17 ER table. Would really appreciate if you could use this data and think on the changes that brings out the desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to get the following:&lt;/P&gt;&lt;P&gt;Sale Values and Quantities of 4 types: Actual,BP,IBP and Forecast. &lt;/P&gt;&lt;P&gt;Where all these will be for current month i.e. Aug'17 in our case, the Forecast has to be considered for next 6 months i.e From Sep'17 till Feb'18.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have attached the revised data to the original post and looking forward to your response!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 17:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430242#M808877</guid>
      <dc:creator>nickjose7</dc:creator>
      <dc:date>2017-10-12T17:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430243#M808879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm taking a look at your new data file. Will use that. Only reason I joined them was to avoid Synthetic Key, I think we can create what you are looking for. Let me review it again to see how we can modify it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will update you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is Link_Date and Link_Model have to be available in our tables? Can Link_Date be renamed in other tables so there won't be two common fields (Namely Link_Model and Link_Date) in our tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 17:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430243#M808879</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-12T17:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430244#M808880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no problem if you are renaming these two fields as long as our requirement is fulfilled which is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link_Dates are to be used to link with the Master Calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link_Model: All Quantities and Values are to be seen Model wise. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to your updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 07:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430244#M808880</guid>
      <dc:creator>nickjose7</dc:creator>
      <dc:date>2017-10-13T07:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modelling Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430245#M808881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about following....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="179691" alt="DM_Challenge.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179691_DM_Challenge.JPG" style="height: 217px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="179692" alt="DM_Challenge2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/179692_DM_Challenge2.JPG" style="height: 397px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can modify script to add your selection inclusion/exclusion or you can do that in table calculation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SaleRegister:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#(Left(Month, 3) &amp;amp; '/01/20' &amp;amp; Right(Month, 2),'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Item as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#(Left(Month, 3) &amp;amp; '/01/20' &amp;amp; Right(Month, 2),'MMM/DD/YY')) as Sale_Link_Date,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Bill Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[BP Group],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Product Group],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Mat. Descrip],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Division,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Item as Sale_Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sales Organization],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Distribution Channel],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Gross Price Amt(INR)]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Final.xlsx]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is [Sale Register])&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;//Where Match(Division, 'CSD' , 'SSD', 'Mobile') // Filtering can be done later or while loading&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;BPReadTmp:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD Models as Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty1],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value1],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS1,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty2],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value2],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS2,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty3],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value3],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS3,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty4],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value4],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS4,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty5],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value5],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS5,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty6],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value6],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS6,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty7],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value7],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS7,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty8],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value8],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS8,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty9],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value9],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS9,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty10],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value10],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS10,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty11],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value11],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS11,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty12],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value12],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS12,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty13],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value13],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS13,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty14],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value14],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS14,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty15],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value15],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS15,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty16],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value16],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS16,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty17],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value17],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS17,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty18],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value18],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS18,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty19],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value19],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS19,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty20],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value20],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS20,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty21],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value21],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS21&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Final.xlsx]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, header is 1 lines, table is BP);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;IBPReadTmp:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD Models as Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty1],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value1],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS1,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty2],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value2],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS2,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty3],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value3],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS3,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty4],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value4],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS4,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty5],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value5],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS5,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty6],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value6],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS6,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty7],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value7],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS7,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty8],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value8],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS8,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty9],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value9],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS9,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty10],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value10],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS10,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty11],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value11],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS11,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty12],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value12],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS12,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty13],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value13],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS13,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty14],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value14],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS14,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty15],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value15],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS15,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty16],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value16],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS16,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty17],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value17],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS17,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty18],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value18],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS18,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty19],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value19],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS19,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty20],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value20],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS20,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty21],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value21],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS21,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty22],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value22],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS22,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty23],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value23],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS23,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty24],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value24],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS24,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty25],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value25],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS25,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty26],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value26],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS26,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty27],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value27],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS27,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty28],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value28],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS28,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty29],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value29],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS29,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty30],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value30],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS30,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty31],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value31],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS31,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty32],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value32],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS32,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Qty33],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sale Value33],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COGS33&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Final.xlsx&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, header is 1 lines, table is IBP);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;PSIReadTmp1:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Internal Model] as Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([42995]) as Sep17Qty,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Sep-17 ($)]) as Sep17Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([43025]) as Oct17Qty,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Oct-17 ($)]) as Oct17Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([43056]) as Nov17Qty,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Nov-17 ($)]) as Nov17Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([43086]) as Dec17Qty,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Dec-17 ($)]) as Dec17Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([42753]) as Jan18Qty,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Jan-18 ($)]) as Jan18Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([42784]) as Feb18Qty,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Feb-18 ($)]) as Feb18Value&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Final.xlsx&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is [PSI Sep'17])&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;where Type='S';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;PSIReadTmp2:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Internal Model] as Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Sep-17 ($)]) as Sep17COGS,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Oct-17 ($)]) as Oct17COGS,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Nov-17 ($)]) as Nov17COGS,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Dec-17 ($)]) as Dec17COGS,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Jan-18 ($)]) as Jan18COGS,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Feb-18 ($)]) as Feb18COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Final.xlsx&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is [PSI Sep'17])&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;where Type='COGS';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vNoOfRows = NoOfRows('PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FOR i = 0 to $(vNoOfRows) - 1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vLink_Model = Peek('Link_Model', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vSep17Qty = Peek('Sep17Qty', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vOct17Qty = Peek('Oct17Qty', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vNov17Qty = Peek('Nov17Qty', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vDec17Qty = Peek('Dec17Qty', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vJan18Qty = Peek('Jan18Qty', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vFeb18Qty = Peek('Feb18Qty', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vSep17Value = Peek('Sep17Value', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vOct17Value = Peek('Oct17Value', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vNov17Value = Peek('Nov17Value', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vDec17Value = Peek('Dec17Value', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vJan18Value = Peek('Jan18Value', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vFeb18Value = Peek('Feb18Value', i, 'PSIReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vSep17COGS = Peek('Sep17COGS', i, 'PSIReadTmp2');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vOct17COGS = Peek('Oct17COGS', i, 'PSIReadTmp2');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vNov17COGS = Peek('Nov17COGS', i, 'PSIReadTmp2');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vDec17COGS = Peek('Dec17COGS', i, 'PSIReadTmp2');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vJan18COGS = Peek('Jan18COGS', i, 'PSIReadTmp2');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vFeb18COGS = Peek('Feb18COGS', i, 'PSIReadTmp2');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;PSIReadTmp:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD * Inline&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;"Link_Model", "Sep17Qty", "Oct17Qty", "Nov17Qty", "Dec17Qty", "Jan18Qty", "Feb18Qty", "Sep17Value", "Oct17Value", "Nov17Value", "Dec17Value", "Jan18Value", "Feb18Value", "Sep17COGS", "Oct17COGS", "Nov17COGS", "Dec17COGS", "Jan18COGS", "Feb18COGS"&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(vLink_Model), $(vSep17Qty), $(vOct17Qty), $(vNov17Qty), $(vDec17Qty), $(vJan18Qty), $(vFeb18Qty), $(vSep17Value), $(vOct17Value), $(vNov17Value), $(vDec17Value), $(vJan18Value), $(vFeb18Value), $(vSep17COGS), $(vOct17COGS), $(vNov17COGS), $(vDec17COGS), $(vJan18COGS), $(vFeb18COGS)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;](delimiter is ',');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NEXT i;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ERReadTmp1:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD [Internal Model] as Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([42948]) as Aug17Qty,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Aug-17 ($)]) as Aug17Value&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Final.xlsx&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is [Aug'17 end result])&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;where Type='S';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ERReadTmp2:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD [Internal Model] as Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num([Aug-17 ($)]) as Aug17COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Final.xlsx&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is [Aug'17 end result])&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;where Type='COGS';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vNoOfRows = NoOfRows('ERReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FOR i = 0 to $(vNoOfRows) - 1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vLink_Model = Peek('Link_Model', i, 'ERReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vAug17Qty = Peek('Aug17Qty', i, 'ERReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vAug17Value = Peek('Aug17Value', i, 'ERReadTmp1');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vAug17COGS = Peek('Aug17COGS', i, 'ERReadTmp2');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ERReadTmp:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD * Inline&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;"Link_Model", "Aug17Qty", "Aug17Value", "Aug17COGS"&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(vLink_Model), $(vAug17Qty), $(vAug17Value), $(vAug17COGS)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;](delimiter is ',');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NEXT i;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;///*&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SaleQtyValueTable:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Apr/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Apr/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty10] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value10] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS10 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('May/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('May/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty11] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value11] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS11 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Jun/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Jun/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty12] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value12] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS12 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Jul/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Jul/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty13] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value13] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS13 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Aug/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Aug/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty14] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value14] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS14 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Sep/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Sep/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty15] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value15] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS15 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Oct/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Oct/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty16] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value16] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS16 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Nov/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Nov/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty17] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value17] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS17 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Dec/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Dec/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty18] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value18] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS18 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Jan/01/2018', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Jan/01/2018', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty19] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value19] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS19 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Feb/01/2018', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Feb/01/2018', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty20] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value20] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS20 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Mar/01/2018', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Mar/01/2018', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty21] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value21] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'BP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS21 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Apr/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Apr/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty22] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value22] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS22 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('May/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('May/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty23] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value23] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS23 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Jun/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Jun/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty24] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value24] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS24 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Jul/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Jul/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty25] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value25] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS25 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Aug/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Aug/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty26] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value26] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS26 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Sep/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Sep/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty27] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value27] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS27 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Oct/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Oct/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty28] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value28] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS28 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Nov/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Nov/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty29] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value29] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS29 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Dec/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Dec/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty30] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value30] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS30 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Jan/01/2018', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Jan/01/2018', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty31] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value31] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS31 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Feb/01/2018', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Feb/01/2018', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty32] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value32] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS32 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Mar/01/2018', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Mar/01/2018', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Qty33] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sale Value33] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'IBP' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;COGS33 as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Sep/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Sep/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sep17Qty] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sep17Value] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'PSI' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Sep17COGS] as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident PSIReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Oct/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Oct/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Oct17Qty] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Oct17Value] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'PSI' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Oct17COGS] as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident PSIReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Nov/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Nov/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Nov17Qty] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Nov17Value] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'PSI' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Nov17COGS] as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident PSIReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Dec/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Dec/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Dec17Qty] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Dec17Value] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'PSI' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Dec17COGS] as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident PSIReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Jan/01/2018', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Jan/01/2018', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Jan18Qty] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Jan18Value] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'PSI' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Jan18COGS] as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident PSIReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Feb/01/2018', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Feb/01/2018', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Feb18Qty] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Feb18Value] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'PSI' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Feb18COGS] as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident PSIReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD MonthStart(Date#('Aug/01/2017', 'MMM/DD/YY')) &amp;amp; Chr(59) &amp;amp; Link_Model as TblJoinkey,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MonthStart(Date#('Aug/01/2017', 'MMM/DD/YY')) as SaleQtyValueDate,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Link_Model,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Aug17Qty] as Sale_Quantity,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Aug17Value] as Sale_Value,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'ER' as [Data Type],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[Aug17COGS] as COGS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident ERReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP Table BPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP Table IBPReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP Table PSIReadTmp1;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP Table PSIReadTmp2;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP Table PSIReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP Table ERReadTmp1;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP Table ERReadTmp2;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP Table ERReadTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RENAME Field SaleQtyValueDate to Link_Date;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DateTmp:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;min([Link_Date]) as min_Link_Date,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;max([Link_Date]) as max_Link_Date&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RESIDENT SaleQtyValueTable;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vMin_Link_Date = peek('min_Link_Date');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vMax_Link_Date = peek('max_Link_Date');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Drop Table DateTmp;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vStart = $(vMin_Link_Date);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vEnd = $(vMax_Link_Date);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vStart = floor(YearStart($(vStart)));&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET vEnd = floor(YearEnd($(vEnd)));&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LET NumOfDays = $(vEnd) - $(vStart) + 1;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Date_src:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(vStart) + Rowno() - 1 as DateID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AUTOGENERATE $(NumOfDays);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[MasterCalendar]:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DateID as Link_Date, // just in case&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;date(DateID) as CalDate, // it will be in format defined in your SET DateFormat=, or in your system format&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;day(DateID) as CalDay,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;week(DateID) as CalWeek,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;month(DateID) as CalMonth, // simple month name; it is dual - numeric and text&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;dual(month(DateID) &amp;amp; '-' &amp;amp; year(DateID),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;year(DateID) &amp;amp; num(month(DateID), '00')) as CalMonthYear, // Month-Year format, dual&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;year(DateID) as CalYear,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;weekday(DateID) as CalWeekday,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'Q' &amp;amp; ceil(month(DateID)/3) as CalQuarter, // in format Q1, Q2, Q3, Q4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;year(DateID) &amp;amp; ceil(month(DateID)/3) as CalQtrYear // Qn-Year, dual&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;// and whatever else you may want here...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RESIDENT Date_src;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Drop Table Date_src;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 00:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Challenge/m-p/1430245#M808881</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-16T00:07:13Z</dc:date>
    </item>
  </channel>
</rss>

