on 09-02-2014 11:59 PM
My numeric Formula Field will not "Show Zero Values" in a subreport. It works fine in the main report...but is blank in a subreport. Is this a known issue?
hi Tom,
this could be NULL values coming into your subreport. nulls cause a formula to stop when there is no check for them.
there's a couple of ways to deal with nulls:
1) quick way is to go to the File menu > Report options and check on the boxes dealing with converting nulls to default values. just so that you're aware, this converts all nulls in the report to default values. a number default would be 0 for a null and for a text the value is ''.
2) use an isnull check in the problem formula(s)
e.g.
if isnull({field}) then 0
else {field} * {field2}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After trying both of your suggestions, the problem remains. Here is the formula field...
if count({AZInvoiceDetail.azid_QtyInvoiced})<=0 then
0
else count({AZInvoiceDetail.azid_QtyInvoiced})
As you can see, the field returns a Count() so there should be no null values. I've gone so far as converting the count to text in an attempt to get the zeros to populate.
Any other ideas?
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.