<?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 First Sorted Value With Dates and Conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-With-Dates-and-Conditions/m-p/103720#M457894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data that looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Person/CreatedDate/CloseDate/Won&lt;/P&gt;&lt;P&gt;Bob/(1/11/2011)/(1/12/2011)/1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each person, I am trying to get the FIRST CLOSED DATE that is GREATER THAN OR EQUAL TO each individual's CREATE DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have so far is below but it is not working. Any help is appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue({&amp;lt; Won = {'1'}, [Close Date]={"&amp;gt;=Date(OppUserCreatedDate,'MM/DD/YYYY')"}&amp;gt;} [Close Date], [Close Date])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2018 18:51:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-18T18:51:52Z</dc:date>
    <item>
      <title>First Sorted Value With Dates and Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-With-Dates-and-Conditions/m-p/103720#M457894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data that looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Person/CreatedDate/CloseDate/Won&lt;/P&gt;&lt;P&gt;Bob/(1/11/2011)/(1/12/2011)/1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each person, I am trying to get the FIRST CLOSED DATE that is GREATER THAN OR EQUAL TO each individual's CREATE DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have so far is below but it is not working. Any help is appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue({&amp;lt; Won = {'1'}, [Close Date]={"&amp;gt;=Date(OppUserCreatedDate,'MM/DD/YYYY')"}&amp;gt;} [Close Date], [Close Date])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-With-Dates-and-Conditions/m-p/103720#M457894</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-18T18:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value With Dates and Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-With-Dates-and-Conditions/m-p/103721#M457895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since each person can have a different CreatedDate... set analysis won't work here... may be use an if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max({&amp;lt;Won = {'1'}&amp;gt;} If([Close Date] &amp;gt;= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OppUserCreatedDate, [Close Date]))&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-With-Dates-and-Conditions/m-p/103721#M457895</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-18T18:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value With Dates and Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-With-Dates-and-Conditions/m-p/103722#M457896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-With-Dates-and-Conditions/m-p/103722#M457896</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T14:48:39Z</dc:date>
    </item>
  </channel>
</rss>

