Focal Point
[Solved] Compound Pivot Tables

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

May 13, 2013, 05:00 PM
linus
[Solved] Compound Pivot Tables
I have searched FocalPoint, and read the manual on Pivot Tables, but can't find anything to tell me if it's possible to have compound pivot tables. Is this possible to do? I keep getting an error that it doesn't like the word 'open'.

Thanks,

Linda

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


WF 7.7.05
HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files
HTML, Excel, PDF
May 14, 2013, 03:55 AM
Arunkumar
Yes it is possible to have a compound pivot tables. The below example may help you. If this is not what you are expecting please post your sample code so that we can help you better.
  
SET COMPOUND = OPEN
TABLE FILE CAR
HEADING
"Car Report By Country"
PRINT
SALES AS 'Sales'
BY COUNTRY
ON TABLE PCHOLD FORMAT EXL2K PIVOT
ON TABLE SET STYLE *
TYPE=REPORT,
TITLETEXT='Summary Country Report', $
TYPE=HEADING, SIZE=16, $
TYPE=TITLE,BACKCOLOR=RGB(184 204 228),$
ENDSTYLE
END


SET COMPOUND = CLOSE
TABLE FILE CAR
HEADING
"Car Report By Model"
" "
PRINT
SALES AS 'Sales'
BY MODEL
ON TABLE PCHOLD FORMAT EXL2K PIVOT
ON TABLE SET STYLE *
TYPE=REPORT,
TITLETEXT='Summary Model Report', $
TYPE=TITLE,BACKCOLOR=RGB(184 204 228),$
ENDSTYLE
END


Thank you,
Arun
May 14, 2013, 03:52 PM
linus
Thanks...my original code dynamically set an &VAR that I placed in my ON TABLE HOLD statement as I loop through my code, depending on the loop ctr. I've changed it to an &VAR that is either set to 'SET COMPOUND = value' or '-*'. I'm working on it now, just getting everything to increment and change to the right value when necessary. Thanks...


WF 7.7.05
HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files
HTML, Excel, PDF
May 14, 2013, 04:03 PM
linus
It's working! Thanks!
How do I mark this as 'Resolved'?


WF 7.7.05
HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files
HTML, Excel, PDF
May 14, 2013, 04:19 PM
eric.woerle
if you edit your original post, you can change the subject heading. Just put [Solved} at the beginning of the post and it will be considered closed.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2