![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When either the Bgn or End Date is blank DailyValue displays <Error |
#3
| |||
| |||
|
|
A tableframe field named DailyValue has this for its calculation: Number( [TBL.Sum of TotalCost] ) / Number( [TBL.EndDate] -[TBL.BgnDate] ) When either the Bgn or End Date is blank DailyValue displays <Error I know what the problem is but I don’t know how to fix it. Can someone help? |
#4
| |||
| |||
|
|
Like Tony said, I would expect <Error> if either were blank. Depending on the details, this might be OK. Question is how you want it to work: If EndDate is blank, do you want to use today in its place, or do you want to return some other message (besides <Error>) if either date is blank? For example (spread across multiple lines for readability, but you need it on one line for a calculated field): iif ( isBlank([TBL.BgnDate]), "Project hasn't started", iif ( isBlank([TBL.EndDate]), "Project isn't done", iif ( [TBL.Sum of TotalCost]<.01, "Total Cost Not Compiled", Number( [TBL.Sum of TotalCost] ) / Number( [TBL.EndDate] -[TBL.BgnDate] ) ) ) ) Liz Jeanette wrote: A tableframe field named DailyValue has this for its calculation: Number( [TBL.Sum of TotalCost] ) / Number( [TBL.EndDate] -[TBL.BgnDate] ) When either the Bgn or End Date is blank DailyValue displays <Error I know what the problem is but I don’t know how to fix it. Can someone help? |
#5
| |||
| |||
|
|
IN A PERFECT WORLD: I would like the calculated field DailyValue to display $0.00 when either of the date fields is blank |
|
in the meantime I will play with your suggestion - some how I have in my head that the culprit is an attempt to divide by zero... |
#6
| |||
| |||
|
|
IN A PERFECT WORLD: I would like the calculated field DailyValue to display $0.00 when either of the date fields is blank in the meantime I will play with your suggestion - some how I have in my head that the culprit is an attempt to divide by zero... |
![]() |
| Thread Tools | |
| Display Modes | |
| |