Solved

Crystal XI, exporting null date fields to EXCEL without the 01/00/1900

Posted on 2014-02-13
6
888 Views
Last Modified: 2014-04-02
I am trying to export from Crystal Xi a date field, based on a grouping, and the most current sequence of dates on my data, In order to get the most current date I have found setting up the field as a date and do a summary on Maximum to the group and just exporting the date field is giving me the right information, BUT...  when I export to Excel if the field is blank the result in Excel is 01/00/1900.  If I change the date to a text field with the else "" I do not have this problem, BUT the most current date does not appear.   Please advise.

Formula:

if ({EMSI_EMPLOYEE_SKILLS.SKILL_CODE} = "SSF" and
{EMSI_EMPLOYEE_SKILLS.USER_DATE_1} <> Date(0,0,0)) then
{EMSI_EMPLOYEE_SKILLS.USER_DATE_1} else Date(0,0,0)
0
Comment
Question by:Grapelady
  • 3
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39858075
Date(0,0,0) is 1 Jan 1900

Try it this way as strings

if ({EMSI_EMPLOYEE_SKILLS.SKILL_CODE} = "SSF" and 
{EMSI_EMPLOYEE_SKILLS.USER_DATE_1} <> Date(0,0,0)) then
    CStr({EMSI_EMPLOYEE_SKILLS.USER_DATE_1},ÿyyyMMdd") 
else 
    ""

Open in new window


mlmcc
0
 

Author Comment

by:Grapelady
ID: 39893613
I have attached a document showing what I am trying to accomplish. The suggestion you gave above I am receiving an error, see attached document.
Date-Formula-issue.docx
0
 

Accepted Solution

by:
Grapelady earned 0 total points
ID: 39893655
I think I just found a solution, if you place a suppression on the field formula for the date and if the date value is 0 then it will suppress those records that do not have a date:  

Date field = Date(0,0,0) it will not export 01/00/1900 to Excel if the value is zero.

I don't know if anyone wants to confirm this or not, but it is working.
0
 

Author Comment

by:Grapelady
ID: 39968339
Please close the question.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now