<?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 Set Analysis Challenge? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Challenge/m-p/524081#M556512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm finding this one really hard and would love some help with it if anyone has time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to Sum up Transactions that their &lt;/P&gt;&lt;P&gt;1. TransDate is Greather than the Last Transaction with a &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CostCodeSection&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; of&amp;nbsp; &lt;/SPAN&gt;"Profit"&lt;/P&gt;&lt;P&gt;2. LESS THAN or Equal to the User Selected AsAt Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ServiceCallNumber is the Grouping Dimension:&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;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsNull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CostCodeSection&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Profit"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(vAsAtDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ServiceCallNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)), 0,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CostCodeSection&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Profit"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(vAsAtDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ServiceCallNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(vAsAtDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;jc_trans_ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'CORRECTION'}&amp;gt;} Amount))&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;I've created a little sample attached. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MORE DETAIL BELOW: Don't want to bore you if you can understand what I mean already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n.b. (I do not want to do this in the data load. I can think of a way but it is too inefficient so I want to use set analysis or aggrs etc. The real one works over millions of rows.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok here goes with the explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. All transactions go against ServiceCallNumbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. On the date that a PROFIT line happens the Service Call is no longer Work in Progress (WIP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. A call can be reopened. All transactions &lt;STRONG&gt;after&lt;/STRONG&gt; the last Profit line are now WIP again until the next Profit Line appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. This is an as at report based on the date selected by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idea is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The User selects a Date&lt;/P&gt;&lt;P&gt;2. Look backwards from this date to find the Profit line. (if no profit line is found then we want all the amounts). &lt;/P&gt;&lt;P&gt;If a Profit line is found (whilst looking backwards) then only could amounts after that date up until the date the user has selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e,g,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On line 3 if the user selects the 3rd of May the WIP amount would be $6. No Profit line exists before the 3rd of may so add up all until the as at date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. Sum (Amount) WHERE TransDate is LESS THAN AsAtDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selected 6 of may that is the profit take up day. Therefore the WIP is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. Sum (Amount) WHERE TransDate is LESS THAN AsAtDate AND Greater THAN Last PROFIT DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note everytime a profit line happens the WIP stops. If something happens after a PROFIT line that meas work started on the Call again and it is again in WIP.&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;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="863"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="114"&gt;ServiceCallNumber&lt;/TD&gt;&lt;TD class="xl78" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="107"&gt;TransDate&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="98"&gt;JobCostRowID&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="134"&gt;CostCodeSection&lt;/TD&gt;&lt;TD class="xl68" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="134"&gt;jc_trans_ref&lt;/TD&gt;&lt;TD class="xl69" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt; Amount &lt;/TD&gt;&lt;TD class="xl71" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="105"&gt; WIP Amount &lt;/TD&gt;&lt;TD class="xl78" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="107"&gt;AsAt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;"&gt;01-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Subcontractor&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.00 &lt;/TD&gt;&lt;TD align="right" class="xl79"&gt;01-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;02-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;200&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Subcontractor&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;02-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;03-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;300&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Subcontractor&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;03-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;400&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Income&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;500&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Income&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;600&lt;/TD&gt;&lt;TD class="xl72" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Profit&lt;/TD&gt;&lt;TD class="xl74"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;07-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;700&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Subcontractor&lt;/TD&gt;&lt;TD class="xl75"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;07-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;08-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;800&lt;/TD&gt;&lt;TD class="xl72" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Profit&lt;/TD&gt;&lt;TD class="xl74"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;08-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;09-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;900&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Subcontractor&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;09-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;10-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1000&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Income&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp; 10.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;10-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl77" height="17"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;11-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1100&lt;/TD&gt;&lt;TD class="xl76" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;"&gt;Income&lt;/TD&gt;&lt;TD class="xl67"&gt;CORRECTION&lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp; 11.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;11-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Jun 2013 13:55:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-30T13:55:40Z</dc:date>
    <item>
      <title>Set Analysis Challenge?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Challenge/m-p/524081#M556512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm finding this one really hard and would love some help with it if anyone has time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to Sum up Transactions that their &lt;/P&gt;&lt;P&gt;1. TransDate is Greather than the Last Transaction with a &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CostCodeSection&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; of&amp;nbsp; &lt;/SPAN&gt;"Profit"&lt;/P&gt;&lt;P&gt;2. LESS THAN or Equal to the User Selected AsAt Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ServiceCallNumber is the Grouping Dimension:&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;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsNull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CostCodeSection&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Profit"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(vAsAtDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ServiceCallNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)), 0,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CostCodeSection&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Profit"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(vAsAtDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ServiceCallNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TransDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(vAsAtDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;jc_trans_ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'CORRECTION'}&amp;gt;} Amount))&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;I've created a little sample attached. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MORE DETAIL BELOW: Don't want to bore you if you can understand what I mean already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n.b. (I do not want to do this in the data load. I can think of a way but it is too inefficient so I want to use set analysis or aggrs etc. The real one works over millions of rows.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok here goes with the explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. All transactions go against ServiceCallNumbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. On the date that a PROFIT line happens the Service Call is no longer Work in Progress (WIP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. A call can be reopened. All transactions &lt;STRONG&gt;after&lt;/STRONG&gt; the last Profit line are now WIP again until the next Profit Line appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. This is an as at report based on the date selected by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idea is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The User selects a Date&lt;/P&gt;&lt;P&gt;2. Look backwards from this date to find the Profit line. (if no profit line is found then we want all the amounts). &lt;/P&gt;&lt;P&gt;If a Profit line is found (whilst looking backwards) then only could amounts after that date up until the date the user has selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e,g,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On line 3 if the user selects the 3rd of May the WIP amount would be $6. No Profit line exists before the 3rd of may so add up all until the as at date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. Sum (Amount) WHERE TransDate is LESS THAN AsAtDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selected 6 of may that is the profit take up day. Therefore the WIP is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. Sum (Amount) WHERE TransDate is LESS THAN AsAtDate AND Greater THAN Last PROFIT DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note everytime a profit line happens the WIP stops. If something happens after a PROFIT line that meas work started on the Call again and it is again in WIP.&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;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="863"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="114"&gt;ServiceCallNumber&lt;/TD&gt;&lt;TD class="xl78" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="107"&gt;TransDate&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="98"&gt;JobCostRowID&lt;/TD&gt;&lt;TD class="xl63" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="134"&gt;CostCodeSection&lt;/TD&gt;&lt;TD class="xl68" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="134"&gt;jc_trans_ref&lt;/TD&gt;&lt;TD class="xl69" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt; Amount &lt;/TD&gt;&lt;TD class="xl71" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="105"&gt; WIP Amount &lt;/TD&gt;&lt;TD class="xl78" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="107"&gt;AsAt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;"&gt;01-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Subcontractor&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.00 &lt;/TD&gt;&lt;TD align="right" class="xl79"&gt;01-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;02-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;200&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Subcontractor&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;02-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;03-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;300&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Subcontractor&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;03-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;400&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Income&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;500&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Income&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;600&lt;/TD&gt;&lt;TD class="xl72" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Profit&lt;/TD&gt;&lt;TD class="xl74"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;06-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;07-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;700&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Subcontractor&lt;/TD&gt;&lt;TD class="xl75"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;07-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;08-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;800&lt;/TD&gt;&lt;TD class="xl72" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Profit&lt;/TD&gt;&lt;TD class="xl74"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;08-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;09-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;900&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Subcontractor&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;09-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;10-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1000&lt;/TD&gt;&lt;TD class="xl65" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Income&lt;/TD&gt;&lt;TD class="xl73"&gt; &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp; 10.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;10-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl77" height="17"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;11-May-10&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1100&lt;/TD&gt;&lt;TD class="xl76" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;"&gt;Income&lt;/TD&gt;&lt;TD class="xl67"&gt;CORRECTION&lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp; 11.00 &lt;/TD&gt;&lt;TD class="xl70"&gt; $&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19.00 &lt;/TD&gt;&lt;TD align="right" class="xl79" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;11-May-10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jun 2013 13:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Challenge/m-p/524081#M556512</guid>
      <dc:creator />
      <dc:date>2013-06-30T13:55:40Z</dc:date>
    </item>
  </channel>
</rss>

