We help IT Professionals succeed at work.

Conditional Grouping

eagles396 asked
Last Modified: 2012-05-05

I've created a report in Crystal XI which lists the number of clients expecting or achieved payments for the selected financial year.  The report is grouped by a development worker.

I'm having problems creating a group/drilldown so I can see exactly which clients are expecting or achieved payments during each month.

The only way I have managed to get the report working is by creating 2 reports exactly the same but 1 of the reports will drilldown to view the expected payments and the other report will drilldown to view the achieved payments.

Is it possible to do this with only 1 report ?

I tried doing this with 1 report but if a client was expected to receive a payment on 13/06/2007 but they achieved the payment on 10/07/2007 then the report would put the client into the 'Milestone Expected Payments' group and not into the 'Milestone Achieved Payments' group.

Below is the formula that I used:

if {L_FUNDING.Product_Ref}='00002' and {L_FUNDING.ExpectedDate}>= Date (int({?Year}),04, 01) and  {L_FUNDING.ExpectedDate}<= Date(int({?Year}+1), 03, 31) then "Milestone Expected Payments "

if {L_FUNDING.Product_Ref}='00002' and {L_FUNDING.AchievedDate}>= Date (int({?Year}),04, 01) and  {L_FUNDING.AchievedDate}<= Date(int({?Year}+1), 03, 31) then "Milestone Achieved Payments "

Tables Used:
Parameters Used:

Development Worker
Report Design

You can see from below that they are 5 payments expecting in April. What I am hoping to achive is to be able to drilldown and view exactly which clients are expected payments in April and all the other 11 months.

                     April  May  June  July  August  September  October  
Value Expected           500
Value Achieved           300
Volume Expected          5
Volume Achieved          3

Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
MIKESoftware Solutions Consultant
Top Expert 2006

Please DEFINE what these 2 groups are:



What criteria are you using to define each. I know you've posted the formula, but I would like to hear your explanation.

I think there is an easier way.


Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.