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     [SOLVED] Percent of Highest Value

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Percent of Highest Value
 Login/Join
 
Platinum Member
posted
Hello

I am wondering about a simple logic. I got it working but I had it in multiple TABLE requests.
TABLE FILE CAR
SUM
	SALES
BY COUNTRY
ON TABLE HOLD AS H1
END

SET ASNAMES = ON
TABLE FILE H1
SUM
	SALES AS 'TOP_SALES'
BY HIGHEST 1 SALES NOPRINT
BY COUNTRY
ON TABLE HOLD AS H2
END

JOIN
	COUNTRY IN H1 TO
	COUNTRY IN H2 AS J0
END
TABLE FILE H1
SUM
	TOP_SALES NOPRINT
	SALES NOPRINT
	COMPUTE TOP_PRCNT/D12.2% = (TOP_SALES/SALES) * 100;
END  


Just want to learn if it can be done in any other simple way. Please suggest.
Thank you.

This message has been edited. Last edited by: BI_Developer,


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 2011Report This Post
Virtuoso
posted Hide Post
Not sure to understand exactly what you are looking to perform.

Please share your whole actual "working" multi requests solution.
It may help to understand


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
Virtuoso
posted Hide Post
Try this:
  
DEFINE FILE CAR
PSALES/D8.2=SALES;
END
TABLE FILE CAR
SUM SALES NOPRINT PCT.PSALES
BY TOTAL HIGHEST 1 SALES NOPRINT
BY COUNTRY NOPRINT
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Platinum Member
posted Hide Post
Martin, edited my first post. Sorry for the confusion.
quote:
Originally posted by MartinY:
Not sure to understand exactly what you are looking to perform.

Please share your whole actual "working" multi requests solution.
It may help to understand


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 2011Report This Post
Platinum Member
posted Hide Post
Danny, this is what I'm looking for. Thank you so much.
quote:
Originally posted by Danny-SRL:
Try this:
  
DEFINE FILE CAR
PSALES/D8.2=SALES;
END
TABLE FILE CAR
SUM SALES NOPRINT PCT.PSALES
BY TOTAL HIGHEST 1 SALES NOPRINT
BY COUNTRY NOPRINT
END


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 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     [SOLVED] Percent of Highest Value

Copyright © 1996-2020 Information Builders