<?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: Invalid Expression attempting to get MaxDate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-attempting-to-get-MaxDate/m-p/664283#M1081977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to group by all fields where there isn't an aggregation function; added in bold&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Loss Mit Steps 324]:&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; [Loan Number] as ln_no_324,&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; [Ls Step Code] as step_cd_324, &lt;BR /&gt;&amp;nbsp; Max([Ls Actual Completion Date]) as s324_Dt,&lt;BR /&gt;&amp;nbsp; [Record Change Code]&lt;BR /&gt;FROM&lt;BR /&gt;&lt;S&gt; (qvd)&lt;BR /&gt;where match([Ls Step Code],'324')&lt;BR /&gt;and match([Record Change Code],'A','C')&lt;BR /&gt;group by &lt;/S&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Loan Number],&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; 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: 12.727272033691406px;"&gt;&lt;STRONG&gt;[Ls Step Code], &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[Record Change Code]&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 18:56:38 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-06-26T18:56:38Z</dc:date>
    <item>
      <title>Invalid Expression attempting to get MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-attempting-to-get-MaxDate/m-p/664282#M1081976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Loss Mit Steps 324]:&lt;/P&gt;&lt;P&gt;LOAD [Loan Number] as ln_no_324, &lt;/P&gt;&lt;P&gt;&amp;nbsp; [Ls Step Code] as step_cd_324, &lt;BR /&gt;&amp;nbsp; Max([Ls Actual Completion Date]) as s324_Dt,&lt;BR /&gt;&amp;nbsp; [Record Change Code]&lt;BR /&gt;FROM&lt;BR /&gt;&lt;S&gt;(qvd)&lt;BR /&gt;where match([Ls Step Code],'324')&lt;BR /&gt;and match([Record Change Code],'A','C')&lt;BR /&gt;group by [Loan Number] &lt;/S&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to show the maxdate and row for a table.&amp;nbsp; The issue is the table tends to have duplicate or repeating fields.&amp;nbsp; I keep getting Invalid expression however when I debug it does not pinpoint exactly where the invalid expression occurs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 17:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-Expression-attempting-to-get-MaxDate/m-p/664282#M1081976</guid>
      <dc:creator />
      <dc:date>2014-06-26T17:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Expression attempting to get MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-attempting-to-get-MaxDate/m-p/664283#M1081977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to group by all fields where there isn't an aggregation function; added in bold&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Loss Mit Steps 324]:&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; [Loan Number] as ln_no_324,&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; [Ls Step Code] as step_cd_324, &lt;BR /&gt;&amp;nbsp; Max([Ls Actual Completion Date]) as s324_Dt,&lt;BR /&gt;&amp;nbsp; [Record Change Code]&lt;BR /&gt;FROM&lt;BR /&gt;&lt;S&gt; (qvd)&lt;BR /&gt;where match([Ls Step Code],'324')&lt;BR /&gt;and match([Record Change Code],'A','C')&lt;BR /&gt;group by &lt;/S&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Loan Number],&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; 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: 12.727272033691406px;"&gt;&lt;STRONG&gt;[Ls Step Code], &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[Record Change Code]&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 18:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-Expression-attempting-to-get-MaxDate/m-p/664283#M1081977</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-06-26T18:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Expression attempting to get MaxDate</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-Expression-attempting-to-get-MaxDate/m-p/664284#M1081978</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;Yes it will through you error for Group By clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using only [Loan Number]&lt;/P&gt;&lt;P&gt;you have to use all the fields excluding those fields on which you are using aggregate function .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jun 2014 06:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-Expression-attempting-to-get-MaxDate/m-p/664284#M1081978</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-06-28T06:54:33Z</dc:date>
    </item>
  </channel>
</rss>

