If you are unable to create a new account, please email support@bspsoftware.com

Author Topic: hiw to retrieve the latest datetime record  (Read 4292 times)

MariusD

  • Guest
hiw to retrieve the latest datetime record
« on: 02 Dec 2010 01:43:47 pm »
Hi,

I am trying to retrieve the latest record from a table (the record with the highest datetime). In TSQL, I can do select top 1 * from x, order by [date] desc - how do I translate that into a filter?
 
Thanks!

Offline MFGF

  • Never knowingly correct
  • Super Moderator
  • Statesman
  • ******
  • Join Date: Jul 2005
  • Posts: 11,705
  • Forum Citizenship: +677/-10
  • Cognos Software Muppet
Re: hiw to retrieve the latest datetime record
« Reply #1 on: 02 Dec 2010 04:05:55 pm »
You could try adding a Rank calculation based on the date, then filtering the report for Rank = 1

MF.
Meep!