# Progress Report Builder - Unknown Values **Category:** [Yahoo Archive](https://www.epiusers.help/c/yahoo-archive/9) **Created:** 2000-09-14 09:16 UTC **Views:** 449 **Replies:** 4 **URL:** https://www.epiusers.help/t/progress-report-builder-unknown-values/1094 --- ## Post #1 by @system
----- Original Message -----
From: Todd Anderson <tanderson@...>
To: 'vantage@onelist.com' <vantage@egroups.com>
Sent: Wednesday, September 13, 2000 3:09 PM
Subject: [Vantage] Progress Report Builder - Unknown Values
>
> Trivia,
>
> I've was working on a report builder report in progress yesterday where I
> had a primary table being joined to a secondary table as a left outer
join.
> In other words - include all records from table "A" and any records from
> table "B" if they exist - which they may not.
>
> Problem was that I wanted to use one of the numeric values from table "B"
in
> calculation with fields from table "A".
>
> When ever you have a record from table "A" with no match from table "B"
the
> variables in table "B" show as a "?" - unknown value.
>
> For my purposes what I wanted was for the "B" variables to default to ZERO
> for purposes of calculation. Otherwise the entire formula defaults to
> unknown.
>
> This seemed so easy - I was not expecting to have to actually think about
it
> ...
>
> Here is how you handle this ...
>
> In your calculation use "Ytd-Bal = IIF(OpenBalance = ?,0,OpenBalance) +
> Tot-Deb + Tot-Crd " ...
>
> Translation : If the variable OpenBalance is unknown because the record
> does not exist then FORCE its value to ZERO, else leave the variable
alone.
> Then add that number to Tot-Deb and Tot-Crd ... etc ...
>
> This also works for situations where you want to SUM a column of numbers -
> create a calculated field "New-Var = IIF(OldVar = ?,0,OldVar)" and then
> print New-Var on your report and auto-sum on New-Var instead of OldVar.
>
> This is probably in the category of who cares but I found it amusing ...
> Yes, I know I'm strange ...
>
> Todd Anderson
> J. Rubin. & Co.
>
>
>
> We no longer allow attachments to files. To access/share Report Files,
please go to the following link: http://www.egroups.com/files/vantage/
> (Note: If this link does not work for you the first time you try it, go
to www.egroups.com, login and be sure to save your password, choose My
Groups, choose Vantage, then choose Files. If you save the password, the
link above will work the next time you try it.)
>
>