on 08-15-2017 3:23 AM - last edited on 02-04-2024 2:15 AM by postmig_api_4
Hi All,
I have a report with some formula to sum up a few formula value for example below.
{@TotalCharge}+{@Profit&Markup}
Noticed when one of the value is blank or 0 then my return value will be blank.
Both data type is currency.
Can anyone advise why is this so?
Thanks in advance.
You need to either modify your formula to test for nulls
Eg
If isnull({valueField} then 0 else ......whatever your formula does.
Or in File-> options check set database nulls to default. This is a bit more risky as it may have repercussions with other parts of your report.
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ian,
I got it. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ian, ,
let said for {@TotalCharge}+{@Profit&Markup}, which mean I must check both {@TotalCharge} and {@Profit&Markup} if it is 0?
If {CR073_ISSUES.CR073_AMT_03} = 0 then {@ShareNonBillCharge}
else if {@ShareNonBillCharge} = 0 then {CR073_ISSUES.CR073_AMT_03}
else {CR073_ISSUES.CR073_AMT_03}-{@ShareNonBillCharge}
Is this correct? But I still get the same result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to test for nulls
If isnull({CR073_ISSUES.CR073_AMT_03}) or {CR073_ISSUES.CR073_AMT_03} = 0
then {@ShareNonBillCharge}......
repeat for rest of formula and also test for nulls in @ShareNonBillCharge in same way.
Ian
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.