<?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: Finding Key Dates and Associated Values in Load Script (Back End) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277543#M846124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share some raw data and from it what is the output you are hoping to see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Mar 2017 16:40:21 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-24T16:40:21Z</dc:date>
    <item>
      <title>Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277542#M846123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello world!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a load solution (not front in calculation) if possible for finding the date of the highest value in a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Donor table that has Fields like: Donor ID, Name, Initial Gift Date, Last Gift Date, Max Gift Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have a Gift table with Field: Gift ID, Donor ID, Gift Amount, Gift Date, Gift Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to answer are these questions&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;For each Donor:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;1) When was their first gift and for how much was the gift for?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2) When was their most recent gift and for how much?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;3) What is the largest gift this donor has given and what is the date on that gift?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I think these will need to end up joined to the Donor table, though the information comes from the gift table.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen a post by &lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌ on a similar topic for a front end solution here: &lt;A href="https://qliktech.hosted.jivesoftware.com/docs/DOC-9044" title="https://qliktech.hosted.jivesoftware.com/docs/DOC-9044" target="_blank"&gt;https://qliktech.hosted.jivesoftware.com/docs/DOC-9044&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I would like a backend solution where this is done in the load script to manage the data more easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&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/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277542#M846123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277543#M846124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share some raw data and from it what is the output you are hoping to see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 16:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277543#M846124</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-24T16:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277544#M846125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll need to make up some data (everything is highly sensitive), but I can give you the form of it. Let me know if this isn't enough&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Donor Table has Donor ID, Name, and other fields, but I want to add the fields I've mentioned (Initial Gift Date, Initial Gift Amount, Last Gift Date, Last Gift Amount, Max Gift Date, Max Gift Amount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Currently&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Donor:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DonorID&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&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&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Gift:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DonorID, GiftID, GiftDate&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, GiftAmount&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 1, 1/1/2017, 100&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2, 2/1/2017, 500&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 3, 3/1/2017, 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 1, 1/1/2017, 50&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2, 2/5/2017, 50&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 1, 3/1/2017, 200&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 1, 1/2/2017, 1000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 2, 2/1/2017, 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&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;&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;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Desired&lt;/STRONG&gt; ( this could be in a separate table as well, like DonorGiftsCalcs):&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Donor:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DonorID, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IGiftDate, IGiftAMT, LGiftDate, LGiftAMT, MGiftDate, MGiftAMT&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 1/1/2017, 100, 3/1/2017, 200, 2/1/2017, 500&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;1/1/2017, 50, 2/5/2017, 50, 2/1/2017, 50&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;3/1/2017, 200, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;3/1/2017, 200, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;3/1/2017, 200&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;1/2/2017, 1000, 2/1/2017, 100, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;1/2/2017, 1000&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;When a Donor has a a lot of gifts and there are multiple "max gifts" I would like to store the date of the most recent max gift.&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;Does this help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 16:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277544#M846125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T16:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277545#M846126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Gift:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DonorID, GiftID, GiftDate, GiftAmount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 1, 1/1/2017, 100 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2, 2/1/2017, 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 3, 3/1/2017, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 1, 1/1/2017, 50 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2, 2/5/2017, 50&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 1, 3/1/2017, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 1, 1/2/2017, 1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 2, 2/1/2017, 100&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Donor:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DonorID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(Min(GiftDate)) as IGiftDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(GiftAmount, GiftDate) as IGiftAMT,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(Max(GiftDate)) as LGiftDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(GiftAmount, -GiftDate) as LGiftAMT,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(GiftDate, -(GiftAmount+(GiftDate/1E10))) as MGiftDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(GiftAmount, -(GiftAmount+(GiftDate/1E10))) as MGiftAMT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Gift&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By DonorID;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157556_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 17:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277545#M846126</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-24T17:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277546#M846127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only place it doesn't match is MGiftDate for DonorID = 2. It might be a typo in the input or output I guess because the underlying data doesn't have 2/1/2017&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 17:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277546#M846127</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-24T17:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277547#M846128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, yes. Typo on my part. That should be, 2/5/2017, as your solution shows. Nice catch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm checking the solution now in my load, will update once finished. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 17:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277547#M846128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T17:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277548#M846129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like a plan &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 17:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277548#M846129</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-24T17:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277549#M846130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should've mentioned initially, I'm using Qlik Sense, if that makes a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put in the script I get an error highlight at "1E10"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 19:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277549#M846130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T19:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277550#M846131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Checking...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 19:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277550#M846131</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-24T19:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277551#M846132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It shows error, but it runs.... if you wish to avoid the error, you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Gift:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DonorID, GiftID, GiftDate, GiftAmount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 1, 1/1/2017, 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2, 2/1/2017, 500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 3, 3/1/2017, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 1, 1/1/2017, 50&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2, 2/5/2017, 50&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 1, 3/1/2017, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 1, 1/2/2017, 1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, 2, 2/1/2017, 100&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Donor:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DonorID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(Min(GiftDate)) as IGiftDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(GiftAmount, GiftDate) as IGiftAMT,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(Max(GiftDate)) as LGiftDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(GiftAmount, -GiftDate) as LGiftAMT,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(GiftDate, -(GiftAmount+(GiftDate/&lt;SPAN style="color: #ff0000;"&gt;10000000000&lt;/SPAN&gt;))) as MGiftDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(GiftAmount, -(GiftAmount+(GiftDate/&lt;SPAN style="color: #ff0000;"&gt;10000000000&lt;/SPAN&gt;))) as MGiftAMT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Gift&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By DonorID;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 19:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277551#M846132</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-24T19:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277552#M846133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Making the change and reloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the purpose of doing this division by 10000000000?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 19:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277552#M846133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T19:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277553#M846134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Giving lower weight in the sorting... here I want to sort first by GiftAmount and then by GiftDate...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 19:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277553#M846134</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-24T19:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277554#M846135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I think I understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this in case the Gift are all the same amount, so there is not a unique "Max" gift?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 19:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277554#M846135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T19:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277555#M846136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely!! Since there are multiple gifts which are max, in order to pull the max date, I need to add that to the sorting. So, Max Gift on Max Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 19:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277555#M846136</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-24T19:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Key Dates and Associated Values in Load Script (Back End)</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277556#M846137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything is loaded in and it's working perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 21:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-Key-Dates-and-Associated-Values-in-Load-Script-Back-End/m-p/1277556#M846137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T21:18:41Z</dc:date>
    </item>
  </channel>
</rss>

