<?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: Load Calc field based on multiple criteria in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580050#M1104417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo&lt;/P&gt;&lt;P&gt;Can you explain the alt part of the following ?&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;A&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;MaxDateRDY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;alt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;MaxDateCMP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2014 10:54:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-01T10:54:44Z</dc:date>
    <item>
      <title>Load Calc field based on multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580043#M1104410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been kicking this question around for a while and I just cant seem to get it right - I hope someone can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have multiple data files that is a log of applications - as part of the load I need to identify if an application is open and if so what Team it is with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a calculated field during load based on this criteria :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each application = the latest date where it is Status = RDY AND there is no CMP for a later date in Team Closed&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any advise relly appreciated&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;A&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="418"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl22" height="17" width="71"&gt;Application&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="64"&gt;Team&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="108"&gt;Date&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="64"&gt;Status&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none;" width="111"&gt;Calculated field&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl22" height="17" style="border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;Input&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;01/01/2014 09:00&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;CMP&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl22" height="17" style="border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;Input&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;01/01/2014 10:00&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;RDY&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl22" height="17" style="border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;Verify&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;01/01/2014 11:00&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;RDY&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl22" height="17" style="border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;Doc&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;02/01/2014 10:00&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;RDY&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl22" height="17" style="border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;Print&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;02/01/2014 12:00&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;CMP&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl22" height="17" style="border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;Verify&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;02/01/2014 13:00&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;CMP&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl22" height="17" style="border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;Doc&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;01/01/2014 11:30&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;RDY&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;OPEN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl22" height="17" style="border-top: medium none;"&gt;3&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;Verify&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;01/01/2014 12:30&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;RDY&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;OPEN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl22" height="17" style="border-top: medium none;"&gt;3&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;Print&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;02/01/2014 12:00&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;CMP&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl22" height="17" style="border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;Closed&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-left: medium none; border-top: medium none;"&gt;02/01/2014 12:00&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt;CMP&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 11:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580043#M1104410</guid>
      <dc:creator />
      <dc:date>2014-03-31T11:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load Calc field based on multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580044#M1104411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this could be solved with inter-record-functions in (nested) if-loops in a sorted load. The condition isn't really clear to me, therefore as abstract example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sourcedata:&lt;/P&gt;&lt;P&gt;Load * From source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sourcedataSort:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(rowno() = 1, Status, if(Application = peek('Application', -1) and Status = 'XYZ', 'abc',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(......................))) as [Calculated field]&lt;/P&gt;&lt;P&gt;Resident sourcedata Order by Application, Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 14:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580044#M1104411</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-03-31T14:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load Calc field based on multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580045#M1104412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response - can you please explain how the calculate Field is working - my understanding is the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its the first row then take the status ( this will give a result either RDY or CMP )&lt;/P&gt;&lt;P&gt;or if the app number is not the same as the app number previous and the status us XYZ - 'ABC' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering which is the part with the latest date ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me apply the logic ?&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;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 14:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580045#M1104412</guid>
      <dc:creator />
      <dc:date>2014-03-31T14:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load Calc field based on multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580046#M1104413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If(Application &amp;lt;&amp;gt; peek('Application', -1) then there is a new application with its startdate. Perhaps there is a better/easier way to check the latest date - per mapping and applymap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapLatestDate:&lt;/P&gt;&lt;P&gt;Mapping Load Application, max(Date) as MaxDate From Source Group By Application;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sourcedataSort:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Date = applymap('MapLatestDate', Date) and Status = 'XYZ' and peek('Status', -1) = 'ABC', 'abc',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(......................))) as [Calculated field]&lt;/P&gt;&lt;P&gt;Resident sourcedata Order by Application, Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 15:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580046#M1104413</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-03-31T15:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load Calc field based on multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580047#M1104414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 16:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580047#M1104414</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-31T16:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load Calc field based on multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580048#M1104415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 21:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580048#M1104415</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-03-31T21:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load Calc field based on multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580049#M1104416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo and Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both look great I will have a look this morning and see if I can apply to my data - thanks so much for taking the time to draft samples - I will respond with my findings ( questions!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 09:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580049#M1104416</guid>
      <dc:creator />
      <dc:date>2014-04-01T09:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load Calc field based on multiple criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580050#M1104417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo&lt;/P&gt;&lt;P&gt;Can you explain the alt part of the following ?&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;A&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;MaxDateRDY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;alt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;MaxDateCMP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 10:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Calc-field-based-on-multiple-criteria/m-p/580050#M1104417</guid>
      <dc:creator />
      <dc:date>2014-04-01T10:54:44Z</dc:date>
    </item>
  </channel>
</rss>

