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     Report Variable and Computes

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Report Variable and Computes
 Login/Join
 
Member
posted
Looking for a way to be able to compute the gross profit on the fly based on the output BY fields selected but want the computed field to be one of the &Sum Variable output field choices. Can not find a way to add a computed field as a report variable where more than one field choice is selected for the variable sum fields. For the below COMPUTE SALE_COST_PERC, I want it to be part of the &Sum variable. Tried adding it to the metadata as a compute but still won't allow it to be selected. Forced it to "work" by adding COMPUTE SALE_COST_PERC field in the &Sum line which broke the fex but with defaults could get it to select in HTML but it only works when one &Sum field is selected but breaks when multiple fields from the &Sum choices are selected.

TABLE FILE CAR
SUM
&Sum.(AND(,,)).Sum Fields.
COMPUTE SALE_COST_PERC/D12.2% = IF CAR.BODY.SALES EQ 0 THEN 0 ELSE IF CAR.BODY.RETAIL_COST EQ 0 THEN 0 ELSE ( ( ( CAR.BODY.SALES - CAR.BODY.RETAIL_COST ) / CAR.BODY.SALES ) * 100 ); AS 'Sales Cost %'
BY LOWEST &Measure.(BY(,,,)).Measure.
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SUMMARIZE AS 'TOTAL'


772 release
 
Posts: 2 | Registered: September 30, 2008Report This Post
Expert
posted Hide Post
ust a thought as I'm not really sure what you really want: Try putting the fields which you'd like to SUM in a HOLD file (pre-processed) and JOIN to that so that you can use the fields from the HOLD file...




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
How would you produce the field list for them to select from and then reference that?

I want the compute field to be one of their options to have as an output or not.

For Example:

They can select one or all or combination of sum fields

Revenue
Invoice Cost
Gross Profit
Gross Profit %

As well as they can choose what BY fields they want- one or all or combination

Country
Region
City

How are you able to get the compute Gross Profit % in that selection criteria (i.e. report variable)?


772 release
 
Posts: 2 | Registered: September 30, 2008Report 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     Report Variable and Computes

Copyright © 1996-2020 Information Builders