<?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 QlikView mapping to get most recent record in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-mapping-to-get-most-recent-record/m-p/1837982#M1215056</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;im trying to create a flag that will store the most recent record for a specific field.&lt;/P&gt;&lt;P&gt;i am using the"unique record ID(f_sgrp) as my max, then just grouping it by LINEID. however im dealing with an oracle SQL database and it doesn't seem to allow me to do this.&lt;/P&gt;&lt;P&gt;my mapping is a simple:&lt;/P&gt;&lt;P&gt;mapping&lt;BR /&gt;load f_prcs, //this is my lineID&lt;BR /&gt;max(f_SGRP) //this is my unique record ID&lt;BR /&gt;;&lt;BR /&gt;sql select f_prcs, f_sgrp&lt;/P&gt;&lt;P&gt;from X&lt;BR /&gt;WHERE Y&lt;BR /&gt;group by f_prcs&lt;/P&gt;&lt;P&gt;in my log file it is saying&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Error: Connector reply error: SQL##f - SqlState: S1000, ErrorCode: 979, ErrorMsg: [Oracle][ODBC][Ora]ORA-00979: not a GROUP BY expression" i think this is because for oracle SQL you have to group by both select statements?&lt;/P&gt;&lt;P&gt;however when i try that, i get the error message:&lt;/P&gt;&lt;P&gt;Error: Field 'f_SGRP' not found&lt;/P&gt;&lt;P&gt;any ideas on how to correct this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 13:21:32 GMT</pubDate>
    <dc:creator>JohnSamuel123</dc:creator>
    <dc:date>2021-09-21T13:21:32Z</dc:date>
    <item>
      <title>QlikView mapping to get most recent record</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-mapping-to-get-most-recent-record/m-p/1837982#M1215056</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;im trying to create a flag that will store the most recent record for a specific field.&lt;/P&gt;&lt;P&gt;i am using the"unique record ID(f_sgrp) as my max, then just grouping it by LINEID. however im dealing with an oracle SQL database and it doesn't seem to allow me to do this.&lt;/P&gt;&lt;P&gt;my mapping is a simple:&lt;/P&gt;&lt;P&gt;mapping&lt;BR /&gt;load f_prcs, //this is my lineID&lt;BR /&gt;max(f_SGRP) //this is my unique record ID&lt;BR /&gt;;&lt;BR /&gt;sql select f_prcs, f_sgrp&lt;/P&gt;&lt;P&gt;from X&lt;BR /&gt;WHERE Y&lt;BR /&gt;group by f_prcs&lt;/P&gt;&lt;P&gt;in my log file it is saying&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Error: Connector reply error: SQL##f - SqlState: S1000, ErrorCode: 979, ErrorMsg: [Oracle][ODBC][Ora]ORA-00979: not a GROUP BY expression" i think this is because for oracle SQL you have to group by both select statements?&lt;/P&gt;&lt;P&gt;however when i try that, i get the error message:&lt;/P&gt;&lt;P&gt;Error: Field 'f_SGRP' not found&lt;/P&gt;&lt;P&gt;any ideas on how to correct this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-mapping-to-get-most-recent-record/m-p/1837982#M1215056</guid>
      <dc:creator>JohnSamuel123</dc:creator>
      <dc:date>2021-09-21T13:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView mapping to get most recent record</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-mapping-to-get-most-recent-record/m-p/1837987#M1215058</link>
      <description>&lt;P&gt;Your group by should be in the same select statement of your aggregation.&amp;nbsp; What if you try:&lt;/P&gt;&lt;P&gt;mapping&lt;BR /&gt;load f_prcs, //this is my lineID&lt;BR /&gt;max(f_SGRP) //this is my unique record ID&lt;/P&gt;&lt;P&gt;group by f_prcs&lt;BR /&gt;;&lt;BR /&gt;sql select f_prcs, f_sgrp&lt;/P&gt;&lt;P&gt;from X&lt;BR /&gt;WHERE Y&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-mapping-to-get-most-recent-record/m-p/1837987#M1215058</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-09-21T13:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView mapping to get most recent record</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-mapping-to-get-most-recent-record/m-p/1837998#M1215060</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/146379"&gt;@stevejoyce&lt;/a&gt;&amp;nbsp;, thanks for that,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i got it working by using:&lt;/P&gt;&lt;P&gt;mapping&lt;BR /&gt;sql select f_prcs, max(f_sgrp) from X&lt;BR /&gt;where&lt;BR /&gt;Y&lt;BR /&gt;group by f_prcs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 14:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-mapping-to-get-most-recent-record/m-p/1837998#M1215060</guid>
      <dc:creator>JohnSamuel123</dc:creator>
      <dc:date>2021-09-21T14:04:46Z</dc:date>
    </item>
  </channel>
</rss>

