Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]Help with subtotal percentages

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Help with subtotal percentages
 Login/Join
 
Platinum Member
posted
TABLE FILE DETAIL
SUM
TOT.DTCost NOPRINT
BY DEPARTMENTCODE NOPRINT
SUM
subtotcost NOPRINT
subtotSRP NOPRINT
subTotalProfit NOPRINT
BY DEPARTMENTCODE NOPRINT
BY IN_COMCLASS NOPRINT
SUM
IN_ITEMCODE/I7 AS 'ItemCode'
IN_COMCLASS AS 'CC'
IN_DESC AS 'Item Description'
AVE.IN_PACK AS 'Pack'
IN_SIZE AS 'Size'
IN_QTY AS 'Cases Del.'
IN_SELL_UNITS AS 'Time Del.'
UnitMove AS 'Unit Move'
totCost AS 'Total Amount Paid'
totSRP AS 'Total Sell Value'
AVE.PercProf AS '% Profit'
TotalProfit
COMPUTE PCTTOT/D9.2 = ( totCost / subtotcost ) * 100;
AS '% Sales @ Cost'
COMPUTE PCTSRP/D9.2 = ( totSRP / subtotSRP ) * 100; AS '% Sales @ Sell'
COMPUTE PCTPRO/D9.2 = ( TotalProfit / subTotalProfit ) * 100;
AS 'Dol Profit'
DTCost
AVE.TotalProfit NOPRINT
BY DEPARTMENTCODE NOPRINT
BY IN_COMCLASS NOPRINT
BY IN_ITEMCODE NOPRINT

ON IN_COMCLASS RECOMPUTE
TotalProfit
IN_QTY
totCost
totSRP AS '*TOTAL'
------------------------------------------------


Would like to use the subtotaled form IN_COMCLASS and do this fomula (((totSRP-totcost)/totSRP)*100) and put the results under the PercProf column

and Lastly I would like to us a value from the susbtotaled DEPARTMENTCODE section to get

totCost(IN_COMCLASS subtotaled)/totCost(DEPARTMENTCODE subtotaled)

Ive tried several diffent ways and can't seem to figure it out
------------------------------------------------
ON DEPARTMENTCODE SUBTOTAL
TotalProfit
IN_QTY
totCost
totSRP

------------------------------------------------
Thanks for the help

Im learning, slowly but surely... thanks for everyones understanding


This will also help me calculate several other values in the report! thanks again

This message has been edited. Last edited by: Charles Richards,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 111 | Registered: May 12, 2011Report This Post
Virtuoso
posted Hide Post
Take a look at the RECAP command, I think it's what you need here.
Drawback of that is that you have to create your own subtotal line using ON field SUBFOOT.
The presentation of RECAP fields can only be controlled by putting them in a subfoot ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Platinum Member
posted Hide Post
Thanks for the help!


How do i use a value from subtotaled IN_COMCLASS and a value from subtotaled DEPARTMENTCODE... Im trying to use (totCost from subtotaled IN_COMCLASS) Divided by (totCost from subtotaled DEPARTMENTCODE) ??


Also when I do receieve the value from the recap, how do i align it under a certian column?

UPDATE: The report successfully ran with a recap in the subfooting and it did appeared... just in the next line and not under the column PercProf

This message has been edited. Last edited by: Charles Richards,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 111 | Registered: May 12, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]Help with subtotal percentages

Copyright © 1996-2020 Information Builders