Focal Point
[SOLVED] missing/null data

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7127075436

November 07, 2013, 02:32 PM
Med1
[SOLVED] missing/null data
I am performing an averaging calculation and am joining 2 tables.
Setting "missing on" will set the value to blank if the child record exists and the field I'm averaging is blank.
However, the issue I'm having is when there is no child record at all, the field I'm averaging is set to zero rather than blank and is giving incorrect results.
How do I set "missing on" with a missing instance/record condition?

This message has been edited. Last edited by: Med1,


TEST: WF 8.0.9 - DevStudio 8.0.9
PROD: WF 8.0.9 - DevStudio 8.0.9
Platform: SQL Server/Windows
November 08, 2013, 07:26 AM
Tim P.
In the GUI, the are two different options. One is 'missing on needs some data' and the other is 'missing on needs all data', I feel like you might want to try the latter and see how it works. I'm assuming you are using a define to create your fields. You can also use
 SET NODATA = ' ' 
in combination with this.

Is it also possible you could do it in two passes, one where you retrieve the information and get all the rows you need then do the averaging?


WebFOCUS App Studio 8.2.02
Windows 7, All Outputs