Focal Point
[CLOSED] Transpose into rows using OVER

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

November 21, 2011, 12:02 PM
Jan1
[CLOSED] Transpose into rows using OVER
Hi,

i am trying to transpose few of the columns into rows using over. From the given example below
1. when i un comment the last line (sequence=4) , it does not align properly.
2. I need the CAR and country value to repat in evry row
3. Score needs to come as a column , not as a header so that i can do some filtering on it
4. How can i achieve all of the above in Excel ? as over does not work in XL
score CAR COUNTRY
---------------------------
Length 2 a A
Width 3 B B

  
TABLE FILE CAR 
PRINT
LENGTH OVER
WIDTH
-*
-*COUNTRY
BY CAR  AS 'WEEK'
BY COUNTRY AS 'MONTH' 
ON TABLE SET STYLE * 
TYPE=REPORT, COLUMN=CAR, SEQUENCE=3, $
-*TYPE=REPORT, COLUMN=COUNTRY, SEQUENCE=4, $
END 

-EXIT

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


WebFOCUS 7.6.9
Windows
Excel, HTML, PDF
November 21, 2011, 12:14 PM
Francis Mariani
Maybe this get you closer:

TABLE FILE CAR 
PRINT
CAR AS ''
COUNTRY AS ''
LENGTH AS 'LENGTH'
OVER
CAR AS ''
COUNTRY AS ''
WIDTH AS 'WIDTH'

BY CAR NOPRINT
BY COUNTRY NOPRINT

ON TABLE SET STYLE * 
TYPE=REPORT, COLUMN=CAR, SEQUENCE=3, $
-*TYPE=REPORT, COLUMN=COUNTRY, SEQUENCE=4, $
ENDSTYLE

ON TABLE PCHOLD FORMAT EXL2K
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