Focal Point
Total Amount vs X amount

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

August 29, 2008, 12:51 AM
JOE
Total Amount vs X amount
Is there a way to show on a single report the following:

Total amount is Column 1
X amount is Column 2.
Percent of X from Total amount is column 3.

X, Y, and Z items would make up total amount. Is this possible? All data can be found in one table.

Thanks,

Joe


WebFocus 7.7.02 WinXP
August 29, 2008, 03:13 AM
nubi
Yes, its is possible


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
August 29, 2008, 03:26 AM
Tony A
ROFL!!!

I concur with Nubi that it is possible. Research multi verb requests such as -

SUM field
BY sort1
PRINT field
BY sort1

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
August 29, 2008, 04:04 AM
nubi
this is what i was getting at- this is WebFOCUS 101 type of stuff..

i think this is the only way to learn, its much better working this stuff out than just being told an answer because that way when you have to do this again in the future you'll remember how you do it rather than remembner that the answer is in the forum somewhere....

use:

WF manuals
WF help file
WF search forum archives
experimentation

all should be available to you to support the training you had and is as much as anyone one else here has....


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
August 29, 2008, 07:10 AM
FrankDutch
I support Nubi's anwer...
although it seems to be not so client friendly....

Joe: please post a bit more info, make an example of the report that is less puzzling and try to work out something based on the CAR database. That will help everybody to understand better what you'r up to...




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

September 01, 2008, 06:39 AM
nubi
i agree Frank that somtimes you 'have to be mean to be nice' Big Grin

im just trying to 'help people help themselves' and rolling out all the cliches while im at it... Wink


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
September 01, 2008, 11:15 AM
susannah

SET ASNAMES = ON
APP PATH ibisamp
TABLE FILE CAR
SUM SALES   AS TOTSALES
BY COUNTRY
SUM SALES COMPUTE SHARE/D4%=100*C2/C1;
BY COUNTRY BY CAR
END
-* C1 IS COLUMN 1; C2 IS COLUMN 2; Cnotation doesn't count BY fields.


i'm willing to give Joe a head start...
Its Labor Day and i'm WORKING!!! Mad




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
September 02, 2008, 04:07 AM
GamP
quote:
Its Labor Day and i'm WORKING!!!

It has alwyas seemed a bit odd to me - labor day and NOT working ....
I mean, isn't that what labor stands for? Wink


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
September 02, 2008, 04:51 AM
Tony A
GamP,

You have to remember that Americans spell it wrong anyway Wink

T
September 02, 2008, 03:48 PM
RSquared
TonyA,

Just because we no longer want to look as if we are FRENCH with the way words are spelled, does not mean it is spelled wrong.


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
September 05, 2008, 05:00 AM
Tony A
Robert,

I was "fishing" as it was only tongue in cheek to see what I could catch.

Look what I landed Wink Razzer

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
September 05, 2008, 05:59 AM
nubi
American


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
September 05, 2008, 07:19 AM
nubi
quote:
Originally posted by nubi:
American < English < French



Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor