I would like different columns subtotalled for different BY fields, but it doesn't work. Please see this example, where for COUNTRY, I only want SALES subtotalled and for CAR I want SALES and WEIGHT subtotalled.
The specified list of fields for COUNTRY are overridden by the specified list of fields for CAR.
TABLE FILE CAR
SUM
SALES
WEIGHT
HEIGHT
BY COUNTRY SUBTOTAL SALES AS 'TOTAL COUNTRY - '
BY CAR SUBTOTAL SALES WEIGHT AS 'TOTAL CAR - '
END
This message has been edited. Last edited by: Francis Mariani,
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
May 22, 2013, 02:27 PM
Doug
I'd keep the totals in defined fields, or COMPUTE ... NOPRINT, and use them in "ON {FIELD} SUBFOOT". Wouldn't that work here?
May 22, 2013, 02:37 PM
Francis Mariani
Thanks, but I sure wish we didn't have to rely on the old SUBFOOT solution. The manual does not state that what I want to do does not work...
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
May 22, 2013, 02:54 PM
Doug
Things aren't always as they seem... Especially considering Technicalities. Maybe in WF8?
May 22, 2013, 06:04 PM
Waz
I think the questions is "should it work", and if so, techsupport needs to know that it doesn't.
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
May 22, 2013, 06:41 PM
Nick Hilt
SET SUMMARYLINES = EXPLICIT
TABLE FILE CAR
SUM
SALES
WEIGHT
HEIGHT
BY COUNTRY SUBTOTAL SALES AS 'TOTAL COUNTRY - '
BY CAR SUBTOTAL SALES WEIGHT AS 'TOTAL CAR - '
END
It's in the documentation for the SUMMARYLINES parameter. The default puts fields in any subtotal into all subtotals.
WebFOCUS 7.6.7 Linux HTML, Excel, PDF
May 22, 2013, 06:56 PM
Waz
Awesome.
Seems this came in, in version 5.32
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
May 23, 2013, 01:25 AM
Danny-SRL
Nick, Nice going for your FIRST post. Congratulations. If I may add: The SUMMARYLINES setting does not work within a TABLE command. Default is OLD; and there are 2 other values, NEW and EXPLICIT, that differ in the way they propagate to higher levels and to grand totals.
Yes, Waz, quite useful...
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
May 23, 2013, 11:12 AM
Prarie
Learn something new all the time.
May 23, 2013, 11:18 AM
Francis Mariani
Nick, thanks for that! We're always learning. Is it a tossup between NEW and EXPLICIT? I'll test this.
Cheers,
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
May 23, 2013, 01:19 PM
susannah
hmmm .... the puzzle becomes... 'who is Nick Hilt'? sounds like a movie title..
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID