<?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: Dynamic set analysis with implicit field value definition - date less than dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-not-possible-implicit-field-value-definition-date/m-p/307318#M113501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution.&lt;/P&gt;&lt;P&gt;I loaded the REPORTDATE and FINISHDATE twice, with no link between the two.&lt;/P&gt;&lt;P&gt;Then compare the dates to return the max FINISHDATE for REPORDATE before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2011 06:26:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-22T06:26:01Z</dc:date>
    <item>
      <title>set analysis not possible ? implicit field value definition - date less than dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-not-possible-implicit-field-value-definition-date/m-p/307316#M113499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reading my (first !) message. Here's my question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table of Work orders, identified by WONUM (work order number/ID), which have a REPORTDATE (date created) and a FINISHDATE (date closed).&lt;/P&gt;&lt;P&gt;For each WONUM, I want to return the maximum FINISHDATE for the set of WONUM which have REPORTDATE before that of this WONUM.&lt;/P&gt;&lt;P&gt;For instance with the table below, I have given the wanted results in the last column: I now need to code this last column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 483px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="62"&gt;WONUM&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="122"&gt;REPORTDATE&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="128"&gt;FINISHDATE&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="171"&gt;Max finishdate of WONUM reported before&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: medium none;"&gt;BC142529&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/01&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/04&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/04&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: medium none;"&gt;BC142796&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/02&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/02&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/04&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: medium none;"&gt;BC142805&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/03&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/11&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: medium none;"&gt;BC142808&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/04&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/05&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="19" style="border-top: medium none;"&gt;BC143523&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/05&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/12&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: medium none; border-left: medium none;"&gt;2011/08/12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with Set analysis to return a subset of WONUM which have a REPORTDATE before that of the current WO, with no sucess (no aggregation). Also I cannot/dont want to use getfieldselection functions and such as this is independent of the selection(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got so far (I'm not sure this is the best way to approach this):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;max(&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;{$&amp;lt;WONUM =&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;P({1&amp;lt;REPORTDATE={"&amp;lt;=$(=&lt;SPAN style="text-decoration: underline;"&gt; &lt;STRONG&gt;///// here REPORTDATE OF THIS WONUM as dynamic value //////&lt;/STRONG&gt;&lt;/SPAN&gt; ))"}&amp;gt;} )&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;gt;}&amp;nbsp; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;total FINISHDATE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; Return max of FINISHDATE from selection where (WONUM which have a REPORTDATE before that of this WONUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But no luck so far, I hope you have some ideas !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Arthur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 09:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-not-possible-implicit-field-value-definition-date/m-p/307316#M113499</guid>
      <dc:creator />
      <dc:date>2011-11-09T09:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic set analysis with implicit field value definition - date less than dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-not-possible-implicit-field-value-definition-date/m-p/307317#M113500</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 attached a .qvw. I'd really appreciate your help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Arthur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 10:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-not-possible-implicit-field-value-definition-date/m-p/307317#M113500</guid>
      <dc:creator />
      <dc:date>2011-11-10T10:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic set analysis with implicit field value definition - date less than dimension</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-not-possible-implicit-field-value-definition-date/m-p/307318#M113501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution.&lt;/P&gt;&lt;P&gt;I loaded the REPORTDATE and FINISHDATE twice, with no link between the two.&lt;/P&gt;&lt;P&gt;Then compare the dates to return the max FINISHDATE for REPORDATE before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 06:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-not-possible-implicit-field-value-definition-date/m-p/307318#M113501</guid>
      <dc:creator />
      <dc:date>2011-11-22T06:26:01Z</dc:date>
    </item>
  </channel>
</rss>

