<?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: Error in Expression while using FirstValue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-while-using-FirstValue/m-p/1362509#M836060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The GROUP BY load has very strict rules - you can only list fields that you are aggregating by, and aggregated values. In your example, you have 10 fields in the LOAD list, but only 2 fields in the GROUP BY list - that's not allowed. You can have either 2 fields in both lists, or 10 fields in both lists - in addition to your aggregations. FistValue() actually looks good, there shouldn't be any issues there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade Your Qlik Skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming to Boston, MA this October!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2017 19:51:24 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2017-05-30T19:51:24Z</dc:date>
    <item>
      <title>Error in Expression while using FirstValue</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-while-using-FirstValue/m-p/1362507#M836058</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'm trying to group my data, but I get "error in expression". This is what i'm writing:&lt;/P&gt;&lt;P&gt;any idea? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Temporada, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Semana, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ejec.Comercial, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DetalleWeek, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Estado Week], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NegocioWeek, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [N° Embarque], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Est. Embarque (3D)], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Est. Embarque (ERP)], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Est. Doc. Embarque (ERP)],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstValue([Pallets Week]) as PalletWeek&lt;/P&gt;&lt;P&gt;FROM &lt;E&gt; (qvd)&lt;/E&gt;&lt;/P&gt;&lt;P&gt;GROUP BY DetalleWeek,NegocioWeek;&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/Error-in-Expression-while-using-FirstValue/m-p/1362507#M836058</guid>
      <dc:creator>cristian_av</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression while using FirstValue</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-while-using-FirstValue/m-p/1362508#M836059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have multiple non-aggregated fields in your load statement.... you will either need to add all of them to your group by or you need to remove them from your load statement. Essentially, based on your aggregation requirement, you need to have all your non-aggregating fields in your group by clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 19:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-while-using-FirstValue/m-p/1362508#M836059</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-30T19:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Expression while using FirstValue</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Expression-while-using-FirstValue/m-p/1362509#M836060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The GROUP BY load has very strict rules - you can only list fields that you are aggregating by, and aggregated values. In your example, you have 10 fields in the LOAD list, but only 2 fields in the GROUP BY list - that's not allowed. You can have either 2 fields in both lists, or 10 fields in both lists - in addition to your aggregations. FistValue() actually looks good, there shouldn't be any issues there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade Your Qlik Skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming to Boston, MA this October!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 19:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Expression-while-using-FirstValue/m-p/1362509#M836060</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2017-05-30T19:51:24Z</dc:date>
    </item>
  </channel>
</rss>

