I need to format numbers differently in the same column. I'd like the numbers at the top of the report to be integer and the numbers at the bottom, in grey, to be % with one decimal.
Is there any way to format them differently?
We're using version 7703.
Thanks.
This message has been edited. Last edited by: <Kathryn Henning>,
WebFOCUS 8.1.05 Windows, All Outputs
November 05, 2014, 09:50 AM
Francis Mariani
Look for "Applying Dynamically Formatted Virtual Fields to Report Columns" in the documentation, described in the GUI section of the docs, or here:
Creating Reports With WebFOCUS Language > Creating Temporary Fields > Defining a Virtual Field > Applying Dynamically Formatted Virtual Fields to Report Columns
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
November 05, 2014, 08:45 PM
HarryLo
Hi Deej, You can do it in at least one of two ways. Use a Subfoot or use FML with Recaps. There may be other ways also.
WebFOCUS 7.6 Windows, All Outputs
November 07, 2014, 11:21 AM
Deej
Thanks for the suggestions, I'll take a look.
Sorry for the late reply, my computer went down shortly after I posted this and I'm just now getting back up and running.
Thanks,
DJ
WebFOCUS 8.1.05 Windows, All Outputs
November 10, 2014, 11:40 AM
jimbo
DEFINE FILE CAR
NEWFMT/A8 = IF COUNTRY EQ 'ENGLAND' THEN 'D15M' ELSE 'D15.2' ;
END
TABLE FILE CAR
LIST COUNTRY DEALER_COST/NEWFMT
END
BY METRIC_SEQUENCE NOPRINT BY METRIC AS '' ACROSS HIGHEST YEARMONTH AS ''
And when I tried to apply your code to my report:
DEFINE FILE FLOORING_WARRANTY_MONTHLY_SCORECARD_TBL ACTUAL/A8 = IF METRIC EQ '% Opened New Construction' THEN 'P2.1BCS%' ELSE IF METRIC EQ '% Opened Retail' THEN 'P2.1BCS%' ELSE IF METRIC EQ '% Opened Commercial' THEN 'P2.1BCS%' ELSE IF METRIC EQ '% Opened Other' THEN 'P2.1BCS%' ELSE 'P6C' ; END
BY METRIC_SEQUENCE NOPRINT BY METRIC AS '' ACROSS HIGHEST YEARMONTH AS ''
I know I'm close, but what do I need to change/add?
WebFOCUS 8.1.05 Windows, All Outputs
November 11, 2014, 09:46 AM
Deej
Not sure why my pictures aren't showing up. FRUSTRATING!
WebFOCUS 8.1.05 Windows, All Outputs
November 11, 2014, 09:55 AM
Deej
Got it!!
DEFINE FILE FLOORING_WARRANTY_MONTHLY_SCORECARD_TBL NEWFMT/A8 = IF METRIC EQ '% Opened New Construction' THEN 'P6.1BCS%' ELSE IF METRIC EQ '% Opened Retail' THEN 'P6.1BCS%' ELSE IF METRIC EQ '% Opened Commercial' THEN 'P6.1BCS%' ELSE IF METRIC EQ '% Opened Other' THEN 'P6.1BCS%' ELSE 'P6C' ; END