Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Max Date on Group Created by Formula Post Reply Post New Topic
Author Message
thummel1
Senior Member
Senior Member
Avatar

Joined: 27 Apr 2012
Location: United States
Online Status: Offline
Posts: 140
Quote thummel1 Replybullet Topic: Max Date on Group Created by Formula
    Posted: 14 Sep 2016 at 7:48am
I am using Crystal 2011. I'm attempting to pull in the Max date on a group I've defined. The report is grouped by Employee ID, then by my custom group. Below is my formula for the custom group:

If(reviewcode)startswith "LVL1I" or (reviewcode)startswith "LVL1A" then 1 else
If(reviewcode)startswith "LVL2" then 2 else
If(reviewcode) startswith "LVL3" then 3 else
If(reviewcode) startswith "LVL4" then 4 else
If(reviewcode)startswith "LVL5" then 5

The max date is returning successfully except for anything categorized as 1. I'd expect to return the max date regardless if a reviewcode was "LVL1I" or "LVL1A", but it returns the max date for only anything as "LVL1I".

How can I get the report to return the max date for anything categorized as 1?




Edited by thummel1 - 14 Sep 2016 at 7:49am
"Press any key to continue. Where's the 'Any' Key?" ~Homer Simpson
IP IP Logged
thummel1
Senior Member
Senior Member
Avatar

Joined: 27 Apr 2012
Location: United States
Online Status: Offline
Posts: 140
Quote thummel1 Replybullet Posted: 14 Sep 2016 at 10:09am
For those looking, I may have found the culprit. My date field is formatted like a string and not as a date, so it's not going to read properly I think. I will look at fixing that and then trying to run this.
"Press any key to continue. Where's the 'Any' Key?" ~Homer Simpson
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.031 seconds.