<?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: Pick First Record in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pick-First-Record/m-p/1249647#M849802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be remove the negative sign next to the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EFFECTIVE_DATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Aggr(If(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Aggr(FirstSortedValue(DISTINCT {&amp;lt;EFFECTIVE_DATE={"$(=vEndDate)"}&amp;gt;} Amount, &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;-&lt;/SPAN&gt;EFFECTIVE_DATE), Account_ID)) &amp;lt;= 0 and Min(EarliestOpen)&amp;gt;=$(vStartDate) and Min(EarliestOpen)&amp;lt;=$(vEndDate), 1, 0), Customer_ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Aggr(If(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Aggr(FirstSortedValue(DISTINCT {&amp;lt;EFFECTIVE_DATE={"$(=vEndDate)"}&amp;gt;} Amount, EFFECTIVE_DATE), Account_ID)) &amp;lt;= 0 and Min(EarliestOpen) &amp;gt;= $(vStartDate) and Min(EarliestOpen) &amp;lt;= $(vEndDate), 1, 0), Customer_ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 11:06:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-21T11:06:54Z</dc:date>
    <item>
      <title>Pick First Record</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-First-Record/m-p/1249645#M849800</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;I have an expression to calculate number of clients who opened a new account. The problem rises where a client has opened multiple accounts on different dates, which in this case I need to show them against first opening date.&lt;/P&gt;&lt;P&gt;I am using below expression which seems picks the latest opening date for a client. Any idea on how I can get the first opening date would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&amp;nbsp; aggr(&amp;nbsp; if(&lt;/P&gt;&lt;P&gt;sum(aggr(&lt;/P&gt;&lt;P&gt;FirstSortedValue( distinct {&amp;lt;EFFECTIVE_DATE={"$(=vEndDate)"}&amp;gt;} Amount,-EFFECTIVE_DATE),Account_ID))&amp;lt;=0 and min(EarliestOpen)&amp;gt;=$(vStartDate) and min(EarliestOpen)&amp;lt;=$(vEndDate),1,0),Customer_ID))&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;Neda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-First-Record/m-p/1249645#M849800</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pick First Record</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-First-Record/m-p/1249646#M849801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove the - against &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EFFECTIVE_DATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&amp;nbsp; aggr(&amp;nbsp; if(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(aggr(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FirstSortedValue( distinct {&amp;lt;EFFECTIVE_DATE={"$(=vEndDate)"}&amp;gt;} Amount,EFFECTIVE_DATE),Account_ID))&amp;lt;=0 and min(EarliestOpen)&amp;gt;=$(vStartDate) and min(EarliestOpen)&amp;lt;=$(vEndDate),1,0),Customer_ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 11:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-First-Record/m-p/1249646#M849801</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-21T11:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pick First Record</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-First-Record/m-p/1249647#M849802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be remove the negative sign next to the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EFFECTIVE_DATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Aggr(If(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Aggr(FirstSortedValue(DISTINCT {&amp;lt;EFFECTIVE_DATE={"$(=vEndDate)"}&amp;gt;} Amount, &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;-&lt;/SPAN&gt;EFFECTIVE_DATE), Account_ID)) &amp;lt;= 0 and Min(EarliestOpen)&amp;gt;=$(vStartDate) and Min(EarliestOpen)&amp;lt;=$(vEndDate), 1, 0), Customer_ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Aggr(If(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum(Aggr(FirstSortedValue(DISTINCT {&amp;lt;EFFECTIVE_DATE={"$(=vEndDate)"}&amp;gt;} Amount, EFFECTIVE_DATE), Account_ID)) &amp;lt;= 0 and Min(EarliestOpen) &amp;gt;= $(vStartDate) and Min(EarliestOpen) &amp;lt;= $(vEndDate), 1, 0), Customer_ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 11:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-First-Record/m-p/1249647#M849802</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-21T11:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pick First Record</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-First-Record/m-p/1249648#M849803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys, I think I wasn't clear on the requirement. firstsortedvalue is returning as expected but when I chart client against opening date(EarliestOpen), it would show client vs. last opening date. somehow the expression points to the last record for a client with mutiple accounts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 11:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-First-Record/m-p/1249648#M849803</guid>
      <dc:creator />
      <dc:date>2017-03-21T11:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pick First Record</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-First-Record/m-p/1249649#M849804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 11:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-First-Record/m-p/1249649#M849804</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-21T11:24:30Z</dc:date>
    </item>
  </channel>
</rss>

