Focal Point
[CLOSED] Average and Total of columns in same report

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

July 08, 2018, 02:02 PM
BI Dev
[CLOSED] Average and Total of columns in same report
Hi,

Is there a way to create a report with 1 dimension and 5 measures in infoassist and display column total(in 1st line) and average(in 2nd line) of the columns in footer? Is it possible to accomplish this using infoassist GUI and not App studio or Text editor?
Regards
BI DEV

This message has been edited. Last edited by: FP Mod Chuck,


Webfocus 8105/8202
Windows
All Outputs
July 10, 2018, 12:13 PM
FP Mod Chuck
BI Dev

Try this..

<code>
TABLE FILE CAR
SUM
CAR.BODY.SEATS
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
CAR.BODY.SALES
BY CAR.ORIGIN.COUNTRY
ON TABLE SUBFOOT
"TOTAL <TOT.SEATS<TOT.DEALER_COST<TOT.RETAIL_COST<TOT.SALES"
"AVERAGE <AVE.SEATS<AVE.DEALER_COST<AVE.RETAIL_COST<AVE.SALES"
" <+0> <+0> <+0> <+0> "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
TYPE=TABFOOTING,
HEADALIGN=BODY,
$
TYPE=TABFOOTING,
LINE=1,
OBJECT=TEXT,
ITEM=1,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=1,
OBJECT=FIELD,
ITEM=1,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=1,
OBJECT=FIELD,
ITEM=2,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=1,
OBJECT=FIELD,
ITEM=3,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=1,
OBJECT=FIELD,
ITEM=4,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=2,
OBJECT=TEXT,
ITEM=1,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=2,
OBJECT=FIELD,
ITEM=1,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=2,
OBJECT=FIELD,
ITEM=2,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=2,
OBJECT=FIELD,
ITEM=3,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=2,
OBJECT=FIELD,
ITEM=4,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=3,
OBJECT=TEXT,
ITEM=1,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=3,
OBJECT=TEXT,
ITEM=2,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=3,
OBJECT=TEXT,
ITEM=3,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=3,
OBJECT=TEXT,
ITEM=4,
COLSPAN=1,
JUSTIFY=RIGHT,
$
TYPE=TABFOOTING,
LINE=3,
OBJECT=TEXT,
ITEM=5,
COLSPAN=1,
JUSTIFY=RIGHT,
$
ENDSTYLE
END
</code>

This message has been edited. Last edited by: FP Mod Chuck,


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
July 10, 2018, 12:28 PM
Tom Flynn
Chuck,
Click Options on the left, check Disable HTML. This will allow the use of carets...

<!DOCTYPE html>
<html>
<body>

<img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">

</body>
</html>


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
July 10, 2018, 12:43 PM
FP Mod Chuck
Thanks for that tip...


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
July 10, 2018, 04:41 PM
BI Dev
Chuck,

Thanks for your response,I wanted to know how to do it as an infoassist user, I want to create this in infoassist without using app studio or text editor, just with the help of the tool. Is it possible to do it?

BI Dev


Webfocus 8105/8202
Windows
All Outputs
July 13, 2018, 10:38 PM
FP Mod Chuck
BI Dev

I did use App Studio to do this with the alignment grid. InfoAssost does not give you that option to type im <TOT.fieldname and AVE.fieldname. You may want to open a case with techsupport to see if there is a way with InfoAssist..


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats