Focal Point
Why does the total on a by show one row below

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

April 12, 2006, 03:28 PM
rc
Why does the total on a by show one row below
Why does the column total show one row under the Total row?
April 12, 2006, 05:13 PM
Prarie
Can you give an example of what you are saying...cause I'm not sure...what you mean.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Usually I've seen that happen when the value of the by field is longer when the *TOTAL ..... is generated, so FOCUS puts the totals on another line to line up with the columns.


Leah
This is a regular issue and I recommend the following link:

http://techsupport.informationbuilders.com/app/css_web_...rpt_fmt_subtotal.htm

Also search this forum for 'total line'

HTH


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
When I tweak the code the suggested code I can an error, below is my procedure. Any ideas?
Still getting the blank total on the next line. Not right next to the total.


DEFINE FILE SMART_CONTRACT_HOLD
BLANK/A1 WITH 'Broker_City' = '';
END
TABLE FILE CONTRACT_HOLD

PRINT
'CO.Ceding_Company_Name/A45' AS 'Cede Name'
'Contract_ID/A5' AS 'Contract'
'MGA_Name/A20' AS 'MGA Name'
'Description_or_Insured/A25' AS 'Short Desc'
'Contract_Class_Desc/A10' AS 'Class'
'Contract_Effective_Date/HMDYY' AS 'Eff Date'
'Anniversary_Date/HMDYY' AS 'Ann Date'
'FRC_Premium/D15' AS 'FRC Premium'
'FRC_Percent/D7.2%' AS 'FRC Percent'
'Broker_Contact/A30' AS 'Broker Contact'
'Underwriter_Name/A35' AS 'Underwriter'
BY
'Broker_City' NOPRINT

ON SMART_CO.Broker_City SUBHEAD
"" "
ON Broker_City NOPRINT SUBTOTAL
FRC_Premium AS 'TOTAL'
ON TABLE SUBHEAD
What is the error you're getting?

I've been at this WebFOCUS game for a long time and have never found a definitive solution to the problem. All the explanations in the world haven't convinced me that it really has to be this way.


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
No real solution, but I was playing with a fex today for another answer on the forum and determined if you change the column heading to be a bit wider then the 'TOTAL' discription can show and the data on the same row.

My main sort colum header was 'Rt,Term,Code' I change it to 'Term Code' and low behold the TOTAL line didn't go to two lines any more.


Leah
This is where I'm confused.
Been playing with the code and the below line works great, except when I add the NOPRINT then it prints *Total Atlanta and the number prints on the line under this one. Why???? Why does Webfocus take the liberty to insert the string "*Total"?
BY 'Broker_City' SUBTOTAL
or
BY 'Broker_City' NOPRINT SUBTOTAL
*Total is the default subtotal text.

Try BY 'Broker_City' NOPRINT SUBTOTAL AS 'Broker City'


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
RC,

Here is a link to a thread discussing this very topic sometime last year. I tried to explain the behavior by using examples using the car file. I hope it sheads some light on the subject.

The key to whether or not the "*Total" appears on the same line as the values is determined by the width of the BY fields that APPEAR on the report. This is way a NOPRINT on the BY field changed the behavior.

https://forums.informationbuilders.com/eve/forums/a/...471078331#3471078331


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
I think understand but can't seem to prove it.
The broker_city is A75 which is a long field.
There isn't any cities that are that long so another 7 chars for "*Total " should not make a difference.

Read through the link... How does NOPRINT affect the width of the field???
ok. "The key here is that the BY fields THAT ARE VISIBLE determine how much space there is to put the "*TOTAL ..." label. "

Looks like the rule is, you can't hide all the BY fields. If you do then WF doesn't know how wide to make the field so it takes a whole row in excel. Would this be safe to say?
If you are hiding (NOPRINT) the BY fields then the "TOTAL" will appear on a seperate line for ANY output format.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
"If you are hiding (NOPRINT) the BY fields then the "TOTAL" will appear on a seperate line for ANY output format."

Wow! I think I got it! Thanks!


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