Crystal Report. Day of Week Function

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

I need to create a group to use in a cross tab report that
takes Sat and Sun and groups it with Friday so that the
values that fall into the Sat and Sun catagory are added
to Fridays values.

This is what I have so far and cannot get it to work.

if dayofweek(cdate
({_VWDATA_WorkQueueAll.Loan_Close_Date})) in [6,7,1] then
minimum(cdate({_VWDATA_WorkQueueAll.Loan_Close_Date}))

Thanks for your help
 
Chris said:
I need to create a group to use in a cross tab report that
takes Sat and Sun and groups it with Friday so that the
values that fall into the Sat and Sun catagory are added
to Fridays values.

This is what I have so far and cannot get it to work.

if dayofweek(cdate
({_VWDATA_WorkQueueAll.Loan_Close_Date})) in [6,7,1] then
minimum(cdate({_VWDATA_WorkQueueAll.Loan_Close_Date}))

Thanks for your help

This isn't a Crystal Reports forum, but ...

Assuming Loan_Close_Date is a valid date format that CDate can convert to a
Date value, maybe what you want is more in the line of:



numberVar day_of_week :=
DayOfWeek(CDate{_VWDATA_WorkQueueAll.Loan_Close_Date}));

If day_of_week In [1, 6, 7] Then
day_of_week := 6;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Week Format 2
Update a report by entering a date 1
Changing day of week group starts 1
Sorting days of the week 2
4 day work week 9
5 day week i/o 7 1
Date grouping by week 2
Sorting day names chronologically 5

Back
Top