Print Page | Close Window

How to limit results to 5 most recent transactions

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22600
Printed Date: 20 Apr 2024 at 2:14am


Topic: How to limit results to 5 most recent transactions
Posted By: sandballer
Subject: How to limit results to 5 most recent transactions
Date Posted: 16 May 2018 at 9:02am
I have a history table that includes item#, tag# (or license plate), transaction type, and date, among many other fields. How can I return only the 5 most recent transactions (or up to 5 if less than that) for each item#/tag#/transaction type combinations?



Replies:
Posted By: kevlray
Date Posted: 24 May 2018 at 5:44am
If you are grouping you can filter by the top 5.  Not sure what you would determine as the top 5.  Also if the data source is a SQL and you are using a command.  You can also use the TOP in the Select statement.



Print Page | Close Window