Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR XI - Help Pls...

Status
Not open for further replies.

OrionStar

Technical User
Dec 3, 2004
336
US
What is wrong with this formula???

if({BKCYACCT.File Open Date})< date(2005,01,01) then "Prev.Date"
else {BKCYACCT.File Open Date}



BKCYACCT.File Open Date IS A date FORMAT...

The error is highlighting the last {BKCYACCT.File Open Date} and saying ....a string is required here.

Am I missing something???

Thanks:

MV

"What would you attempt to do... if you knew ... you could not fail?
 
Since "Prev.date" is a string, then {BKCYACCT.File Open Date} must be converted to a string.

Code:
if({BKCYACCT.File Open Date})< date(2005,01,01) then "Prev.Date"
else totext({BKCYACCT.File Open Date},"MM/dd/yyyy")

-lw
 
More help please. I have a cross tab that I want to use this field as a column and group by MONTH. So that PrevDate is a column, then 01/05, 02/05, 03/05 ETC..ETC.

I don't get the DATE grouping option if this field is a STRING OR A NUMBER////????

How can I get ONE grouping for ALL DATES prior to 01/01/05 and THEN... a column for each month in 2005???

THANKS

Thanks:

MV

"What would you attempt to do... if you knew ... you could not fail?
 
You could

1. Change your group and select specified order and place all dates < 2005 in Others

or

2. Change the formula to assign a previous date

Code:
if({BKCYACCT.File Open Date})< date(2005,01,01) then date(2004,12,31)
else {BKCYACCT.File Open Date}

 
I am using CR XI and I am having difficulty with date parameters. I cant seem to get it to default to today. The parameter field force the use of the date picker to enter a value. This is really cumbersome, especially for reports that are often run as of the current date, however need the capacity to be run as of some other date.

Can anyone help?

thanks

Thanks and best regards,
-Lloyd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top