Focal Point
[SOLVED]Hide a column from across column

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

February 09, 2016, 02:38 PM
vnf
[SOLVED]Hide a column from across column
I have a cross report for country. How can I hide the column for JAPAN without losing my total.

here is the sample using a CAR file
TABLE FILE CAR
SUM
CAR.BODY.SALES
BY CAR.COMP.CAR
BY CAR.CARREC.MODEL
ACROSS LOWEST CAR.ORIGIN.COUNTRY ACROSS-TOTAL
ON TABLE COLUMN-TOTAL AS 'TOTAL'
END

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8.2.0.7,
Application Studio,
Webfocus Info-Assist
iWay Service Manager,
iWay Data Migrator
Windows, All Outputs
IBM DB2/400, MS SQL-Server 2014
February 09, 2016, 02:42 PM
BabakNYC
What should Total be if your report hides JAPAN?

I assume you don't like the total when you have:
WHERE COUNTRY NE 'JAPAN';


WebFOCUS 8206, Unix, Windows
February 09, 2016, 02:58 PM
vnf
I will also need the grand total amount including JAPAN


WebFOCUS 8.2.0.7,
Application Studio,
Webfocus Info-Assist
iWay Service Manager,
iWay Data Migrator
Windows, All Outputs
IBM DB2/400, MS SQL-Server 2014
February 09, 2016, 02:59 PM
John_Edwards
There's a way to specify which values are included in the report, but I think it takes the non-selected columns out of the totals as well.

Multi-part report where the second captures the total numbers and presents them separately?



February 09, 2016, 03:16 PM
vnf
John,

How do specific which columns are included in the report?
If I can hide what I don't need. Then, I can do a manual define to calculate the totals.

thanks,

Vera


WebFOCUS 8.2.0.7,
Application Studio,
Webfocus Info-Assist
iWay Service Manager,
iWay Data Migrator
Windows, All Outputs
IBM DB2/400, MS SQL-Server 2014
February 09, 2016, 03:26 PM
John_Edwards
It's in the Help files for ACROSS COLUMNS AND as this --

TABLE FILE EMPLOYEE
SUM CURR_SAL
ACROSS BANK_NAME COLUMNS 'BEST BANK' AND STATE
AND ASSOCIATED AND 'BANK ASSOCIATION'
END

Sort of a bugger to find unless you know it's there.



February 09, 2016, 04:44 PM
susannah
using column notation {eg Cn, also Pn, )
SET ASNAMES = ON
TABLE FILE IBISAMP/CAR
SUM SALES AS TOTSALES 
  
SUM SALES   BY COUNTRY 
ON TABLE HOLD
END
 TABLE FILE HOLD PRINT *
END
TABLE FILE HOLD SUM TOTSALES NOPRINT SALES ACROSS COUNTRY AND COMPUTE TOTAL=C1;
IF COUNTRY NE 'FRANCE'
END

where C1 is the first column after the first verb, and you have NOPRINTed that column, but the internal matrix still can use it just fine




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 09, 2016, 08:02 PM
j.gross
See what happens with
WHERE TOTAL COUNTRY NE 'JAPAN';


- Jack Gross
WF through 8.1.05
February 10, 2016, 11:25 AM
vnf
thanks Susan


WebFOCUS 8.2.0.7,
Application Studio,
Webfocus Info-Assist
iWay Service Manager,
iWay Data Migrator
Windows, All Outputs
IBM DB2/400, MS SQL-Server 2014