Is there any way that bring the across-total first and then across fields
For Example
TABLE FILE CAR SUM DEALER_COST BY COUNTRY ACROSS MODEL ON TABLE ROW-TOTAL END
in the above case ROW-TOTAL prints as last column but I want ROW-TOTAL First followed by the across field values
Any suggestion?
ThanksThis message has been edited. Last edited by: Satya Dach,
WebFOCUS 8.1 Windows, PPT
September 02, 2016, 03:11 AM
Danny-SRL
Hi Satya and welcome to the Forum. This should do the trick:
TABLE FILE CAR
SUM DEALER_COST AS TOTAL
BY COUNTRY
SUM DEALER_COST
ACROSS SEATS
BY COUNTRY
ON TABLE SET ACROSSTITLE SIDE
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
September 02, 2016, 09:09 PM
Satya Dach
Hi,
Thanks for the respond, in my code I can't use multi verb because it is a compound report and will impacts other reports. Is there any direct way like we use for subtotal like sub-total above?
Thanks
WebFOCUS 8.1 Windows, PPT
September 06, 2016, 11:57 AM
MartinY
A way could be to create the across-column total then hold the result, create the across fields and hold the result, then match both files together.
Such as:
TABLE FILE CAR
SUM DEALER_COST AS 'DEALER_COST_TOT'
BY COUNTRY
ON TABLE HOLD AS TOT FORMAT FOCUS
END
-RUN
TABLE FILE CAR
SUM DEALER_COST
BY COUNTRY
BY SEATS
ON TABLE HOLD AS DET FORMAT FOCUS
END
-RUN
MATCH FILE TOT
SUM DEALER_COST_TOT
BY COUNTRY
RUN
FILE DET
PRINT SEATS
DEALER_COST
BY COUNTRY
AFTER MATCH HOLD AS RESULT OLD-OR-NEW
END
-RUN
TABLE FILE RESULT
SUM DEALER_COST
BY COUNTRY
BY DEALER_COST_TOT
ACROSS SEATS
END
-RUN
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
September 06, 2016, 06:57 PM
Satya Dach
Thanks got it, working as expected
WebFOCUS 8.1 Windows, PPT
September 07, 2016, 06:26 AM
Sureshkuamr Murugesan
Hi Satya, Please change the title with [RESOLVED] in prefix. So that if anyone has the same kind of issue, then they will follow the same steps to get it fixed.
Have a nice day... Regards, Suresh
WebFOCUS 8.0.05 - BI Portal, Developer Studio, Dev/App Studio, Excel, PDF, Active Formats and HTML5, Adobe Flex Builder, VBA