<?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: Aggregated Positions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195276#M879340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to use a Mapping Load here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2016 11:03:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-13T11:03:48Z</dc:date>
    <item>
      <title>Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195271#M879335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the attached data and I am struggling to come up with a solution as to how to aggregate the positions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three totals columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(udf_code)&lt;/P&gt;&lt;P&gt;Total (Leg 1)&lt;/P&gt;&lt;P&gt;Total (Leg 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of these totals has an applicable code (columns A, D and F)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to return the results as listed on the Total tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&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/Aggregated-Positions/m-p/1195271#M879335</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195272#M879336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Like This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;sum(TOTAL udf_code)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Total [Leg 1])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Total [Leg 2])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 10:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195272#M879336</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-13T10:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195273#M879337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some of the codes appear in different columns.&amp;nbsp; For example '23' appears in column D and F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore is there a clever way to calculate the totals for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 10:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195273#M879337</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2016-10-13T10:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195274#M879338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NP, Qlikview can take where field has same Values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give Alias Name to change the NAmes and use Qualify and UnQualify to achieve this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195274#M879338</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-13T11:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195275#M879339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil.&amp;nbsp; Are you able to use my data as an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195275#M879339</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2016-10-13T11:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195276#M879340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to use a Mapping Load here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195276#M879340</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T11:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195277#M879341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to provide a bit more information.&amp;nbsp; I am unsure how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195277#M879341</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2016-10-13T11:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195278#M879342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MappingTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; udf_code, Total&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23, 225&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26, -30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5Y, -15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7Y, -215&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GY, 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HK, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LT, -200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LY, 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FactTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ApplyMap('MappingTable', udf_code) as [sum (udf_code)],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ApplyMap('MappingTable', [Spot-Month Aggregate Into Futures Equivalent Leg (1)]) as [Total (Leg 1)],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ApplyMap('MappingTable', [Spot-Month Aggregate Into Futures Equivalent Leg&amp;nbsp; (2)]) as [Total (Leg 2)];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; udf_code, formatdate, Spot-Month Aggregate Into Futures Equivalent Leg (1), Spot-Month Aggregate Into Futures Equivalent Leg&amp;nbsp; (2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7Y, OCT-16, 5Y, 23&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GY, OCT-16, LY, 26&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HK, OCT-16, 23, 26&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LT, OCT-16, LY, 23&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140489_Capture.PNG" style="height: 80px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195278#M879342</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T11:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195279#M879343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In excel I would use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUMIF(Data!A:A,Total!$A2,Data!B:B)+SUMIF(Data!D:D,Total!$A2,Data!$E:$E)+SUMIF(Data!F:F,Total!$A2,Data!G:G)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use a similar code in Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195279#M879343</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2016-10-13T11:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195280#M879344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this, I guess:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ApplyMap('MappingTable', udf_code) as [sum (udf_code)],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ApplyMap('MappingTable', [Spot-Month Aggregate Into Futures Equivalent Leg (1)]) as [Total (Leg 1)],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ApplyMap('MappingTable', [Spot-Month Aggregate Into Futures Equivalent Leg&amp;nbsp; (2)]) as [Total (Leg 2)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;) as TOTAL&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195280#M879344</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T11:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195281#M879345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of taking the data from the first tab (on the attached spreadsheet) and creating the view of the data as per the second tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if it's possible to use the data from one table to create another?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, how can I create a table that list all of the codes from 'udf_code', 'Spot-Month Aggregate Into Futures Equivalent Leg (1)' and 'Spot-Month Aggregate Into Futures Equivalent Leg (2)'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this can be shown using a .qvw example that would be great?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195281#M879345</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2016-10-13T14:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195282#M879346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you want this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD udf_code, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [sum(unpriced_lots)], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Spot-Month Aggregate Into Futures Equivalent Leg (1)], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total(Leg 1)], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Spot-Month Aggregate Into Futures Equivalent Leg&amp;nbsp; (2)], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total (Leg 2)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Position test data.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is [Original Table]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD udf_code as code,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [sum(unpriced_lots)] as lots&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(FinalTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Spot-Month Aggregate Into Futures Equivalent Leg (1)] as code, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total(Leg 1)] as lots&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(FinalTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Spot-Month Aggregate Into Futures Equivalent Leg&amp;nbsp; (2)] as code, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total (Leg 2)] as lots&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140558_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 19:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195282#M879346</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T19:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195283#M879347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, I wrote a very similar solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had an idea to create the table in one .qvw and export to a .qvd file on a daily basis.&amp;nbsp; Is it possible to export a specific table as part of the script or automated process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will then re-load the data from the .qvd file in a new .qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 09:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195283#M879347</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2016-10-14T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195284#M879348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can store the data using a STORE statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD udf_code,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [sum(unpriced_lots)],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Spot-Month Aggregate Into Futures Equivalent Leg (1)],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total(Leg 1)],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Spot-Month Aggregate Into Futures Equivalent Leg&amp;nbsp; (2)],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total (Leg 2)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[Position test data.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(ooxml, embedded labels, table is [Original Table]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD udf_code as code,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; [sum(unpriced_lots)] as lots&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Concatenate(FinalTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD [Spot-Month Aggregate Into Futures Equivalent Leg (1)] as code,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total(Leg 1)] as lots&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Concatenate(FinalTable)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD [Spot-Month Aggregate Into Futures Equivalent Leg&amp;nbsp; (2)] as code,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total (Leg 2)] as lots&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #ff0000;"&gt;STORE FinalTable into Path/QVDName.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DROP Table Table&lt;SPAN style="color: #ff0000;"&gt;, FinalTable&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 12:39:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195284#M879348</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T12:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195285#M879349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I am really struggling with this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below code which is join to an ODBC sql (large code) on udf_code.&amp;nbsp; I have a field in the sql named unpriced_lots that is used in the new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Table:&lt;BR /&gt; &lt;BR /&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: #0000ff; font-size: 8pt;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;[Contract Name]&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;[Rule Chapter]&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;[Commodity Code]&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;udf_code&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;[Contract Size]&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;[Contract Units]&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;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;Settlement&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;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;[Diminishing Balance Contract]&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;[Reporting Level]&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;[Spot-Month position comprised of futures and deliveries]&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;[Spot-Month Aggregate Into Futures Equivalent Leg (1)]&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;[Spot-Month Aggregate Into Futures Equivalent Leg (2)]&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;[Spot-Month Aggregate Into Ratio Leg (1)]&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;[Ratio Leg (1)]&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;[Spot-Month Aggregate Into Ratio Leg (2)]&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;[Ratio Leg (2)]&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;[Spot-Month Accountability Level]&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;[Daily Accountability Level (For Daily Contract)]&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;[Initial Spot-Month Limit (In Net Futures Equivalents) Leg (1) / Leg (2)]&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;[Initial Spot-Month Limit Effective 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;[Spot-Month Limit (In Contract Units) Leg (1) / Leg (2)]&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;[Second Spot-Month Limit (In Net Futures Equivalents)]&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;[Second Spot-Month Limit Effective 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;[Single Month Aggregate Into Futures Equivalent Leg (1)]&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;[Single Month Aggregate Into Futures Equivalent Leg (2)]&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;[Single Month Aggregate Into Ratio Leg (1)]&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;[Single Month Aggregate Into Ratio Leg (2)]&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;[Single Month Accountability Level Leg (1) / Leg (2)]&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;[Single Month Limit (In Net Futures Equivalents) Leg (1) / Leg (2)]&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;[All Month Aggregate Into Futures Equivalent Leg (1)]&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;[All Month Aggregate Into Futures Equivalent Leg (2)]&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;[All Month Aggregate Into Ratio Leg (1)]&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;[All Month Aggregate Into Ratio Leg (2)]&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;[All Month Accountability Level Leg (1) / Leg (2)]&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;[All Month Limit (In Net Futures Equivalents) Leg (1) / Leg (2)]&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;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;V&gt;&lt;BR /&gt; (&lt;/V&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; [Ch 5 Table]); &lt;BR /&gt; &lt;BR /&gt; FinalTable:&lt;BR /&gt; &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;exchange_cd&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;[Commodity Code]&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;udf_code&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;formatdate&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;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;unpriced_lots&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;SumUnpricedLots&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;[Spot-Month Aggregate Into Ratio Leg (1)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; Sum&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;unpriced_lots&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ratio Leg (1)])&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;TotalLeg1&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;[Spot-Month Aggregate Into Ratio Leg (2)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;unpriced_lots&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ratio Leg (2)])&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;TotalLeg1&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;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table;&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; Table, FinalTable;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;However I get the following error message.&amp;nbsp; Do you have any idea what I am doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140651_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 13:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195285#M879349</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2016-10-14T13:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195286#M879350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you have a left join here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="140654" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140654_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that needed for something unrelated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 13:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195286#M879350</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T13:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195287#M879351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might not be needed.&amp;nbsp; I have taken it out and now just have LOAD, however I get the below error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140653_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;unpriced_lots is a field calculated in the sql (see below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;convert(numeric(23,8),sum(_UDF_SPEC_v.udf_pos_lots * (case when _exposure.priced_eod_ind='N' then _exposure.pricing_pct else 0 end))) as unpriced_lots &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 13:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195287#M879351</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2016-10-14T13:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195288#M879352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But it is not available in your Table right from which you are doing a resident load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 14:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195288#M879352</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T14:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195289#M879353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's in the SQL that I join to the first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to then create a table from this joined data.&amp;nbsp; Is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 14:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195289#M879353</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2016-10-14T14:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated Positions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195290#M879354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is... try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;SQLTable&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;SQL Select ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (&lt;SPAN style="color: #ff0000;"&gt;SQLTable&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Contract Name], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Rule Chapter], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Commodity Code] as udf_code, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Contract Size], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Contract Units], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Type, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Settlement, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Group, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Diminishing Balance Contract], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Reporting Level], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Spot-Month position comprised of futures and deliveries], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Spot-Month Aggregate Into Futures Equivalent Leg (1)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Spot-Month Aggregate Into Futures Equivalent Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Spot-Month Aggregate Into Ratio Leg (1)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Ratio Leg (1)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Spot-Month Aggregate Into Ratio Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Ratio Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Spot-Month Accountability Level], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Daily Accountability Level (For Daily Contract)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Initial Spot-Month Limit (In Net Futures Equivalents) Leg (1) / Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Initial Spot-Month Limit Effective Date], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Spot-Month Limit (In Contract Units) Leg (1) / Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Second Spot-Month Limit (In Net Futures Equivalents)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Second Spot-Month Limit Effective Date], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Single Month Aggregate Into Futures Equivalent Leg (1)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Single Month Aggregate Into Futures Equivalent Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Single Month Aggregate Into Ratio Leg (1)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Single Month Aggregate Into Ratio Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Single Month Accountability Level Leg (1) / Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Single Month Limit (In Net Futures Equivalents) Leg (1) / Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[All Month Aggregate Into Futures Equivalent Leg (1)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[All Month Aggregate Into Futures Equivalent Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[All Month Aggregate Into Ratio Leg (1)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[All Month Aggregate Into Ratio Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[All Month Accountability Level Leg (1) / Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[All Month Limit (In Net Futures Equivalents) Leg (1) / Leg (2)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;V&gt;&lt;/V&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(ooxml, embedded labels, header is 1 lines, table is [Ch 5 Table]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD exchange_cd,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Commodity Code] as udf_code, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;formatdate,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Sum(unpriced_lots) as SumUnpricedLots,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Spot-Month Aggregate Into Ratio Leg (1)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Sum(unpriced_lots*[Ratio Leg (1)]) as TotalLeg1,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Spot-Month Aggregate Into Ratio Leg (2)], &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Sum(unpriced_lots*[Ratio Leg (2)]) as TotalLeg1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;SQLTable&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you now going to store this new table in qvd or not? If you do want to save it, add a store statement before you drop FinalTable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 14:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-Positions/m-p/1195290#M879354</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T14:22:29Z</dc:date>
    </item>
  </channel>
</rss>

