Focal Point
Question about report for field with no data

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

September 27, 2007, 03:10 PM
MrBlurry
Question about report for field with no data
I'm creating a FOCEXEC that will produce a report using BY fields and SUM fields. I'm summarize data by year. I'm also only processing data for two years. One of my fields for one year has data and in the subsequent year, it has no data. This particular field does not show up on my report. Should'nt it show, whether there is data or not?

My pseudocode is summarize field1 field2 across yearfield by field 3.

What might be causing the field not to show on my report?
September 27, 2007, 03:32 PM
FrankDutch
If there is no data for that year, you will not see it, unless you force the report to do so.


TABLE FILE CAR
SUM SALES
BY MODEL
ACROSS COUNTRY
COLUMNS ENGLAND AND FRANCE AND SPAIN
END


Spain has no data but you will get an empty column now




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

September 27, 2007, 04:48 PM
MrBlurry
FrankDutch,

Thanks for replying. Question... what about if the data record has information for one year but not for the other year? That is the situation in my case... my records show data for one year in the yearfield, but not for the other year in the yearfield.
September 27, 2007, 05:27 PM
FrankDutch
that was in my answer, but if you want it in your code


TABLE FILE yourfile
SUM FIELD1 FIELD2
BY FIELD3
ACROSS YEARFIELD
COLUMNS THISYEAR AND PREVYEAR
END



The prevyear should be displayed as a column but the data would be empty.

BTW take some time to update your signature, so we know your platform and version!




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

September 28, 2007, 09:12 AM
MrBlurry
Thanks for replying... I used your hints and got what I needed.