Link to home
Start Free TrialLog in
Avatar of Erin Leale
Erin LealeFlag for United States of America

asked on

Crystal Reports - String Year Field to Date for Compare

I have a database field that is Fiscal Year - I need to make this field an actual Date field so I can compare to Current Date data and Prior Year data.  Is there a way to accomplish this?

Thank you.
Avatar of Mike McCracken
Mike McCracken

Sure.  Is the FY the calendar year or is it something else?

What data is in the Fiscal Year field?

mlmcc
Avatar of Erin Leale

ASKER

2015
If it is a number you could just compare the years

{FIscal Year} = Year({DateField})

Are you trying to group on the field?

mlmcc
No - I need to make a calculation based on the Fiscal Year to the current year.

If I use the example above it gives an error because the Fiscal Year field is a string.

I think I need to create an actual Date field based on Period and Year then see if I can compare the years.  Thoughts?
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial