Tips and Tricks
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Tips and Tricks
Message Icon Topic: get the latest date Post Reply Post New Topic
Author Message
carmenv323
Newbie
Newbie
Avatar

Joined: 20 May 2014
Location: United States
Online Status: Offline
Posts: 2
Quote carmenv323 Replybullet Topic: get the latest date
    Posted: 25 Aug 2014 at 5:50am
This is how my data looks:

635584 8/10/2012 Family Medicine Ba NP
635584 4/18/2013 Family Medicine Egan MD
635584 3/17/2014 Women's Health Prenatal Registration
635584 6/2/2014 Family Medicine Matathia
635584 8/5/2014 Women's Health Forman CNM

I want to only pull the latest appointment which was 8/5/14, I created the formula:
maximum({Command.lastappt}) and was able to do just that!

but I also got the providers too...

635584 8/5/2014 Family Medicine Ba NP
635584 8/5/2014 Family Medicine Egan MD
635584 8/5/2014 Women's Health Prenatal Registration
635584 8/5/2014 Family Medicine Matathia
635584 8/5/2014 Women's Health Forman CNM

So I went ahead and did this...
maximum({Command.lastappt}) & " " & {Command.provider}
and it gave me the same results.

It works the same way even if I group by Provider. What's the best approach?

Thanks in advance!
Progress is a process.
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 25 Aug 2014 at 9:55pm
You need to specify to max on the provider group.
 
maximum({Command.lastappt},{Command.provider})
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.030 seconds.