on 04-24-2014 1:37 PM
Hi,
I'll start with the basics...
I have a report pulling in data via a query.
I have formulas such as:
@Type1
formula: {PRODUCT} >= 9600 and {PRODUCT} <= 9610
@Type2
formula: {GROUP} like '1H*'
@Type3
formula: {PRODUCT} = 1000020 or {PRODUCT} = 1155020 or ( {PRODUCT} >= 4904030 and {PRODUCT} <= 4999025 )
( Seven more..)
In order to see what doesn't fall into any of the formulas, I have a suppress formula on the Detail line:
@Type1 or @Type2 or @Type3 ...
Well, that's not working, it filters out maybe 95+%, but many items that meet the suppress are still displaying, and I can see no apparent pattern.
I've tried adding WhilePrintingRecords to the suppress formula, but that it flags it as and error when I try to save.
Halp!
Thanks!
Matt
Hi Matthew,
Create a Details B section and place each of those seven formulae on this new section.
See where the formulae show false/true combination and that can help you find out which record could be causing the issue.
P.S: Remove the suppression logic whilst doing this exercise.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Abhilash,
I had little color flags set for the formulas, but actual placing the formulas shows me where the problem is, because they don't display at all...
The records I'm bringing in are "Line" items. Sometimes a Line item has a BOM, but not always. If it doesn't, the allowed fields are blank:
Name Invoice Line# LineGrp BOM# BOMGrp
Frank 11111 145 302 789 1H2
Bah 22222 147 303
Lahdie 55555 189 7UQ 999 1M0
In the suppress (and elsewhere), I'm actually checking both Line and BOM:
@Line.Type1 or @BOM.Type1 or
@Line.Type2 or @BOM.Type2 or
@Line.Type3...
If there is no BOM data, it seems to ignore the formula.
How can code around this or otherwise dummy the data?
Matt
Ahh I see.
Check for NULLs in each of your formulae:
Something like this:
IF isNull({PRODUCT}) OR
(
{PRODUCT} >= 9600 and {PRODUCT} <= 9610
)
If you do not wish to modify each formula, an easy way out could be by checking the two Convert Null options under File > Report Options. The same option is also available in the Formula Editor for each formula; the default is set to 'Exceptions for Nulls' - meaning, the formula stops executing as soon as it hits a NULL value.
-Abhilash
Hi,
Actually, if I change from:
Line.Type1 or BOM.Type1 or
Line.Type2 or BOM.Type2 or
Line.Type3 or BOM.Type3...
to
Line.Type1 or Line.Type2 or Line.Type3 or
BOM.Type1 or BOM.Type2 or BOM.Type3
it give me what I need... for now...
but I do foresee circumstances where I'm not going to rely on that...
Matt
May be, its relevant to start with the basics again.
If the report is based off a query as per your description, then it makes sense to change the where clause of the query and test the results after including all the required conditions to filter the records.
Prathamesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.