Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting the Max daily timestamp

Status
Not open for further replies.

rob11nj

Programmer
Jan 5, 2006
18
US
I'm trying to work only with those rows of data that are the most recently updated each day (maximum timestamp for each day) but I'm running into some problems.

I've tried creating a formula field with the following:
Maximum({DEVICE_ALLOCATION.TIMESTAMP},{DEVICE_ALLOCATION.TIMESTAMP},"daily")

I thought that this would give me the maximum timestamp for each day but I keep recieving the following error:

"There must be a group that matches this field."

Not really sure what that means or where to go from here. I would think that this should be fairly simple.
Any help would be much appreciated!
 
You have to insert a group on {DEVICE_ALLOCATION.TIMESTAMP}. Is this a datetime field or just a time field? Check the datatype by running your mouse over the field so you can see the tooltip text.

-LB
 
Ahhh thats it, I actually did have the group but it was being printed each second instead of each day... just changed the group to daily and it's not throwing any errors at me anymore.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top