<?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 Find the correct value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560752#M209286</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 a table with the following main fields (among others); [Task], [Change date], [Delivery deadline], [Progress %]&lt;/P&gt;&lt;P&gt;The table contents could look like this:&lt;/P&gt;&lt;P&gt;1, 2013-12-01, 2013-12-30, 0&lt;/P&gt;&lt;P&gt;1, 2013-12-05, 2013-12-28, 50&lt;/P&gt;&lt;P&gt;2, 2013-12-01, 2013-12-13, 0&lt;/P&gt;&lt;P&gt;2, 2013-12-02, 2013-12-12, 0&lt;/P&gt;&lt;P&gt;2, 2013-12-10, 2013-12-15, 50&lt;/P&gt;&lt;P&gt;2, 2013-12-12, 2013-12-13, 100&lt;/P&gt;&lt;P&gt;2, 2013-12-15, 2013-12-13, 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is to write an expression to get the correct Delivery deadline for the latest Change date (and that for each Task).&lt;/P&gt;&lt;P&gt;I only have 10 Tasks so I will make a separate expression for each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for Task 1 it would be 2013-12-28 and for Task 2: 2013-12-13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already solved what I thought was a harder expression; to find the first change date when Progress is 100, but that expression won't help me with this one...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Dec 2013 13:18:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-11T13:18:26Z</dc:date>
    <item>
      <title>Find the correct value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560752#M209286</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 a table with the following main fields (among others); [Task], [Change date], [Delivery deadline], [Progress %]&lt;/P&gt;&lt;P&gt;The table contents could look like this:&lt;/P&gt;&lt;P&gt;1, 2013-12-01, 2013-12-30, 0&lt;/P&gt;&lt;P&gt;1, 2013-12-05, 2013-12-28, 50&lt;/P&gt;&lt;P&gt;2, 2013-12-01, 2013-12-13, 0&lt;/P&gt;&lt;P&gt;2, 2013-12-02, 2013-12-12, 0&lt;/P&gt;&lt;P&gt;2, 2013-12-10, 2013-12-15, 50&lt;/P&gt;&lt;P&gt;2, 2013-12-12, 2013-12-13, 100&lt;/P&gt;&lt;P&gt;2, 2013-12-15, 2013-12-13, 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is to write an expression to get the correct Delivery deadline for the latest Change date (and that for each Task).&lt;/P&gt;&lt;P&gt;I only have 10 Tasks so I will make a separate expression for each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for Task 1 it would be 2013-12-28 and for Task 2: 2013-12-13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already solved what I thought was a harder expression; to find the first change date when Progress is 100, but that expression won't help me with this one...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 13:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560752#M209286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-11T13:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find the correct value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560753#M209287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[Task, Change date, Delivery deadline, Progress %&lt;/P&gt;&lt;P&gt;1, 2013-12-01, 2013-12-30, 0&lt;/P&gt;&lt;P&gt;1, 2013-12-05, 2013-12-28, 50&lt;/P&gt;&lt;P&gt;2, 2013-12-01, 2013-12-13, 0&lt;/P&gt;&lt;P&gt;2, 2013-12-02, 2013-12-12, 0&lt;/P&gt;&lt;P&gt;2, 2013-12-10, 2013-12-15, 50&lt;/P&gt;&lt;P&gt;2, 2013-12-12, 2013-12-13, 100&lt;/P&gt;&lt;P&gt;2, 2013-12-15, 2013-12-13, 100];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp; Task,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max([Change date]) as [Change date]&lt;/P&gt;&lt;P&gt;&amp;nbsp; Resident Data&lt;/P&gt;&lt;P&gt;&amp;nbsp; Group By Task;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 14:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560753#M209287</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-12-11T14:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Find the correct value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560754#M209288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with a link table with only the task number and the max update date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see exemple&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 14:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560754#M209288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-11T14:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find the correct value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560755#M209289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tack Henric,&lt;/P&gt;&lt;P&gt;Would probably work for me (I ran it and it works of course), but I would rather not do it in the load section, but instead have an expression that find the value(s) for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 15:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560755#M209289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-11T15:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find the correct value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560756#M209290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you should make a chart with Task as dimension and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue([Delivery deadline],-[Change date])&lt;/P&gt;&lt;P&gt;as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 16:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560756#M209290</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-12-11T16:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find the correct value</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560757#M209291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henric,&lt;/P&gt;&lt;P&gt;I did as you first suggested and solved it as an inner join in the load section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I found out that my clever expression to find the first Change date with the Progress =100 didn't work in all cases. How would you suggest a solution to find this?&lt;/P&gt;&lt;P&gt;In task 1: there would be none found but in task 2: it would return 2013-12-12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Found the solution... Just made a new load statement with a "Where Progress=100" and that solved it.&lt;/P&gt;&lt;P&gt;So now I have three tables: The original with a lot of columns, a table with the Max change date and a table with the Min change date when the progress is 100%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So thanks for the help.&lt;/P&gt;&lt;P&gt;// Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 14:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-correct-value/m-p/560757#M209291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-12T14:49:13Z</dc:date>
    </item>
  </channel>
</rss>

