<?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 FirstSortedValue and Aggr? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Aggr/m-p/934457#M322734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following data:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mlats.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105937_mlats.png" style="width: 620px; height: 216px;" /&gt;&lt;/P&gt;&lt;P&gt;In the straight table (top) the formula for "Assigned" is aggr(FirstSortedValue(AR.MLATS,AR.FullTime),AR.Company) but this is&lt;/P&gt;&lt;P&gt;returning "Null". There are only two values for MLATS for this account, as shown in the second table box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is FSV not working here? Does it not work inside AGGR? (I tried it without the AGGR function, and got the message "Error: can't calculate column"; adding AGGR turned it to Null. ) Also, the formula for "Incoming Lead" in the straight table is Aggr(AR.IncTS,AR.Company), and it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on how I might pick the first of the two MLATS values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 18:32:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-18T18:32:12Z</dc:date>
    <item>
      <title>FirstSortedValue and Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Aggr/m-p/934457#M322734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following data:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mlats.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105937_mlats.png" style="width: 620px; height: 216px;" /&gt;&lt;/P&gt;&lt;P&gt;In the straight table (top) the formula for "Assigned" is aggr(FirstSortedValue(AR.MLATS,AR.FullTime),AR.Company) but this is&lt;/P&gt;&lt;P&gt;returning "Null". There are only two values for MLATS for this account, as shown in the second table box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is FSV not working here? Does it not work inside AGGR? (I tried it without the AGGR function, and got the message "Error: can't calculate column"; adding AGGR turned it to Null. ) Also, the formula for "Incoming Lead" in the straight table is Aggr(AR.IncTS,AR.Company), and it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on how I might pick the first of the two MLATS values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Aggr/m-p/934457#M322734</guid>
      <dc:creator />
      <dc:date>2015-11-18T18:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue and Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Aggr/m-p/934458#M322735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=FirstSortedValue(AR.MLATS, AR.FullTime)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;as expression, not as calculated dimension.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 18:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Aggr/m-p/934458#M322735</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-18T18:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue and Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Aggr/m-p/934459#M322736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but I ended up using &lt;SPAN style="font-size: 12pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;AR.MLATS&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;AR.Company&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;),'MM/DD/YY hh:mm:ss') &lt;/SPAN&gt;for the&lt;/P&gt;&lt;P&gt;first one, and max() for the second one. Works perfectly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 20:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Aggr/m-p/934459#M322736</guid>
      <dc:creator />
      <dc:date>2015-11-18T20:14:18Z</dc:date>
    </item>
  </channel>
</rss>

