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] Calculating two fields to get gross percentage.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Calculating two fields to get gross percentage.
 Login/Join
 
Member
posted
I have two fields STD_TRK_CNTRB_CM1_AMT and NET_RVNU_AMT.i want to compute a field as “Gross Margin %” .

for e.g value of STD_TRK_CNTRB_CM1_AMT is 1000 and NET_RVNU_AMT is 20. I want to show the value of STD_TRK_CNTRB_CM1_AMT /NET_RVNU_AMT as 20% in the report.

what would be the code?
please advice ASAP.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8
Windows, All Outputs
 
Posts: 14 | Registered: January 15, 2015Report This Post
Guru
posted Hide Post
1000 - 20 - 20% ?

What you need to do exactly?


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
 
Posts: 394 | Location: Chennai | Registered: December 02, 2009Report This Post
Member
posted Hide Post
I WANT TO CALCULATE THE PERCENTAGE WHEN BOTH THE VALUE GET DIVIDE.I MEAN 1000/20=50%.


WebFOCUS 8
Windows, All Outputs
 
Posts: 14 | Registered: January 15, 2015Report This Post
Virtuoso
posted Hide Post
I think that what Ramkumar means is that what you are requesting: dividing 1000 by 20 is giving 50 but not 50%.

So, to calculate a gross margin percentage is much more like: (sales_amt - cost_amt) / sales_amt * 100

Or: (1 - ((sales_amt - margin_amt) / sales_amt)) * 100

In your case, if I understand properly your first post:
(1- ((1000 - 20) / 1000)) * 100 = 2%


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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] Calculating two fields to get gross percentage.

Copyright © 1996-2020 Information Builders