Focal Point
NODATA on ACROSS
January 11, 2007, 02:13 PM
MadamZuZuNODATA on ACROSS
Hello. the little issue i'm having is, when i do a cnt. on an across field instead of showing up as my "NODATA" character i get 0s.
what can i do to fix it?
i don't want to have "--" instead of all my 0 values
TABLE FILE CAR
SUM
CNT.SALES
OVER CAR
BY MODEL
ACROSS COUNTRY
ON TABLE SET NODATA '--'
ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON, GRID=OFF, WRAP=ON, FONT='ARIAL', SIZE=9, ORIENTATION=LANDSCAPE,$
ENDSTYLE
END
~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~
PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server)
TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
January 11, 2007, 02:27 PM
Francis MarianiYou "get 0s" and you "don't want to have "--" instead of all my 0 values". What DO you want to have displayed?
This will give you blanks instead of zeros:
TABLE FILE CAR
SUM
CNT.SALES/I8S
OVER CAR
BY MODEL
ACROSS COUNTRY
ON TABLE SET NODATA '--'
ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON, GRID=OFF, WRAP=ON, FONT='ARIAL', SIZE=9, ORIENTATION=LANDSCAPE,$
ENDSTYLE
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 11, 2007, 02:40 PM
MadamZuZui want my NODAYA (--) symbol to display, instead of 0s or blanks
~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~
PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server)
TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
January 11, 2007, 03:18 PM
Francis MarianiMadamZuZu,
I think this is what you require:
DEFINE FILE CAR
CCOUNT/D6 = 1;
END
TABLE FILE CAR
SUM
CCOUNT
OVER CAR
BY MODEL
ACROSS COUNTRY
ON TABLE SET NODATA '--'
ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON, GRID=OFF, WRAP=ON, FONT='ARIAL', SIZE=9, ORIENTATION=LANDSCAPE,$
ENDSTYLE
END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 11, 2007, 03:22 PM
MadamZuZuThanks!
~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~
PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server)
TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode
January 12, 2007, 02:31 AM
Tony AJust so that it is understood, when you count a field then you will always get a numeric and never a null.
If I ask you the question "How many real field values do you have? Give the answer as a numeric." and all of the field values are nulls, you should reply "zero". Does this help in understanding why you have zeroes?
T
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | | |
WebFOCUS App Studio 8.2.06 standalone on Windows 10 | |
January 12, 2007, 10:28 AM
MadamZuZuhi
everything is now wokring, however when i do a PCT. on a field i get a NODATA character instead of a NULL.
which is what i need, i'm just curious as to why it works for .PCT but not for .CNT
DEFINE FILE CAR
CCOUNT/D6 = 1;
END
TABLE FILE CAR
SUM
CCOUNT
OVER PCT.DEALER_COST WITHIN MODEL
BY MODEL
ACROSS COUNTRY
ON TABLE SET NODATA '--'
END
~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~||~~~
PROD: WebFOCUS 7.1.3 on Win 2K/IIS 6/ISAPI Mode/Self-Serve Apps Only (No App Server)
TEST: WebFOCUS 7.1.3 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode