Solved

Crystal Reports conditional formula execution based upon field contents

Posted on 2016-10-28
5
25 Views
Last Modified: 2016-11-19
I developed an Order Backlog report to forecast anticipated billing dates. Some of our orders are "progress billings"... where the order is based upon various milestones:
  • First 1/3 with Purchase Order
  • Second 1/3 at delivery
  • Final 1/3 at plant approval

The Prog Billing2, Prog Billing3 and Prog Billing3 dates are calculated from the Start Date and the 1st Shot Date using the formula: DateADD ("d", 90, {OrderDet.User_Date1})

If the Terms are something other than a Progress Billing Term code, I don't want the dates to appear under the Prog Billing2, Prog Billing3 and Prog Billing3 headings.

I've tried using IF IsNull{OrderDet.CumulativeBilling... if blank then ProgBill2, etc should also be blank. But it could be a progress billing that the first billing hasn't occurred yet. I think the better condition is to check the TERMS. If Terms DO NOT START with Prog, then suppress/blank ProgBill2, ProgBill3 and ProgBill4 dates.

Order Backlog Design View
Order-Backlog-Progress-Billings.pdf

Thanks for any suggestions.
Regards, Lee
0
Comment
Question by:Lee Ingalls
  • 2
  • 2
5 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points (awarded by participants)
ID: 41864600
Try it this way

NOT({TermsField}  LIKE '*PROG*')

mlmcc
0
 
LVL 8

Author Comment

by:Lee Ingalls
ID: 41867175
Michael,

Thanks for the response.
Are you suggesting I add the NOT({TermsField}  LIKE '*PROG*') to my ProgBill formula?
If so, I'm not certain how??

NOT({Orders.User_Text2} LIKE '*PROG*')
DateADD ("d", 90, {OrderDet.User_Date1})

The ProgBilling2 field is the StartDate Field plus 90 days using ProgBill2 formula:  
DateADD ("d", 90, {OrderDet.User_Date1})

The ProgBilling3 field is the 1StShotDate field plus 120 days using ProgBill3 formula:
DateADD ("d", 120, {OrderDet.User_Date2})

Regards, Lee
ProgBill2-formula.pdf
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 500 total points (awarded by participants)
ID: 41867198
I meant  for you to use the formula as the SUPPRESSION formula for the field

mlmcc
0
 
LVL 8

Author Comment

by:Lee Ingalls
ID: 41867334
Perfect.
You are the man!
Thanks Michael.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

813 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

15 Experts available now in Live!

Get 1:1 Help Now