<?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: LOAD/SELECT With function &amp;quot;Invalid Expression&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LOAD-SELECT-With-function-quot-Invalid-Expression-quot/m-p/1750594#M453559</link>
    <description>&lt;P&gt;Lastvalue() is an aggregation and needs a group by if there are further fields involved, like:&lt;/P&gt;&lt;P&gt;table1: SQL SELECT&lt;BR /&gt;"D47505_Datum",&lt;BR /&gt;"D47501_Artikelkod"&lt;BR /&gt;FROM [REDACTED].PUPRHIST where ("D47505_Datum"&amp;lt;$(Test));&lt;/P&gt;&lt;P&gt;table2: LOAD&lt;BR /&gt;LastValue("D47505_Datum") as minDate,&lt;BR /&gt;KeyArtikel&lt;BR /&gt;resident table1 &lt;STRONG&gt;group by KeyArtikel&lt;/STRONG&gt;; /* you may also need an order by ... */&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Oct 2020 08:44:32 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-10-08T08:44:32Z</dc:date>
    <item>
      <title>LOAD/SELECT With function "Invalid Expression"</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-SELECT-With-function-quot-Invalid-Expression-quot/m-p/1750544#M453557</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Im trying to load two fields where one of them only should contain 1 value.&lt;/P&gt;&lt;P&gt;If i only load the one field with LastValue function it works, but i need to have it connected(dont know the term)&lt;/P&gt;&lt;P&gt;with the other table.&lt;/P&gt;&lt;P&gt;the provided code gives the resulting error&lt;/P&gt;&lt;P&gt;Invalid expression&lt;BR /&gt;SQL SELECT&lt;BR /&gt;"D47505_Datum",&lt;BR /&gt;"D47501_Artikelkod"&lt;BR /&gt;FROM [REDACTED].PUPRHIST where ("D47505_Datum"&amp;lt;20200807)&lt;/P&gt;&lt;LI-SPOILER&gt;LOAD&lt;BR /&gt;LastValue("D47505_Datum") as minDate,&lt;BR /&gt;"D47501_Artikelkod" as KeyArtikel;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT&lt;BR /&gt;"D47505_Datum",&lt;BR /&gt;"D47501_Artikelkod"&lt;BR /&gt;FROM [REDACTED].PUPRHIST where ("D47505_Datum"&amp;lt;$(Test));&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 07:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-SELECT-With-function-quot-Invalid-Expression-quot/m-p/1750544#M453557</guid>
      <dc:creator>Techsam</dc:creator>
      <dc:date>2020-10-08T07:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD/SELECT With function "Invalid Expression"</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-SELECT-With-function-quot-Invalid-Expression-quot/m-p/1750594#M453559</link>
      <description>&lt;P&gt;Lastvalue() is an aggregation and needs a group by if there are further fields involved, like:&lt;/P&gt;&lt;P&gt;table1: SQL SELECT&lt;BR /&gt;"D47505_Datum",&lt;BR /&gt;"D47501_Artikelkod"&lt;BR /&gt;FROM [REDACTED].PUPRHIST where ("D47505_Datum"&amp;lt;$(Test));&lt;/P&gt;&lt;P&gt;table2: LOAD&lt;BR /&gt;LastValue("D47505_Datum") as minDate,&lt;BR /&gt;KeyArtikel&lt;BR /&gt;resident table1 &lt;STRONG&gt;group by KeyArtikel&lt;/STRONG&gt;; /* you may also need an order by ... */&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 08:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-SELECT-With-function-quot-Invalid-Expression-quot/m-p/1750594#M453559</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-10-08T08:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD/SELECT With function "Invalid Expression"</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-SELECT-With-function-quot-Invalid-Expression-quot/m-p/1750599#M453560</link>
      <description>&lt;P&gt;This worked, however not with the result i needed.&lt;BR /&gt;I Want the resulting field to only have 1 value. This got me multiple.&lt;/P&gt;&lt;P&gt;maybe you know of an easier way to accomplish what i need.&lt;BR /&gt;what i need is based on user input load or change a field so it results in 1 row/value.&lt;BR /&gt;(i used the Test variable as input)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 09:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-SELECT-With-function-quot-Invalid-Expression-quot/m-p/1750599#M453560</guid>
      <dc:creator>Techsam</dc:creator>
      <dc:date>2020-10-08T09:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD/SELECT With function "Invalid Expression"</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-SELECT-With-function-quot-Invalid-Expression-quot/m-p/1750740#M453569</link>
      <description>&lt;P&gt;It's not really clear for me what do you want to do - this ?&lt;/P&gt;&lt;P&gt;table2: LOAD &lt;STRONG&gt;min&lt;/STRONG&gt;("D47505_Datum") as minDate resident table1;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 14:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-SELECT-With-function-quot-Invalid-Expression-quot/m-p/1750740#M453569</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-10-08T14:18:28Z</dc:date>
    </item>
  </channel>
</rss>

