Max Date

Stimulsoft Reports.NET discussion
Post Reply
MikeC
Posts: 51
Joined: Mon Jun 07, 2010 3:36 pm

Max Date

Post by MikeC »

I have a form that I'm working on that has a couple of data bands in panels. In one of the databands I need to filter for only the max date on a field (property transfer dates). For example, the parcel may have several transfer dates but I don't want a list, I only want to pull a single record with the most current transfer date on it.

How do I set a filter on the data band that only pulls the max date?
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Max Date

Post by Ivan »

Hello,

Please do the following:
- set the Sort property of databand: your_date_field, Descending
- set the Filter property of databand: Field is "Expression", "YourDataSource.Position == 0"

Thank you.
Attachments
596.Report sample.zip
(2.96 KiB) Downloaded 484 times
MikeC
Posts: 51
Joined: Mon Jun 07, 2010 3:36 pm

Max Date

Post by MikeC »

Thanks-that worked.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Max Date

Post by Andrew »

Hello,

Thank you for letting us know about this.
Post Reply