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     Calculate the Percentage from Field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Calculate the Percentage from Field
 Login/Join
 
Platinum Member
posted
hi all,

i have issue here i have Table Called Enquiry that has MemberID[not primary Key and may to be repeated] and Date Column, i want to generate Report Contain Column called NumberOfENQ that count the Number FOR Each MemberID[how many repeated] and the Total then i want to Calculate the Percentage of Repeated Column with the Total?

i try with SQL Statment and Computed Field but it is not work?

Can you help me Smiler


WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.
 
Posts: 118 | Registered: February 08, 2006Report This Post
<JG>
posted
Have a look at the following example based on the WebFocus TRADES database

The out put shows and might do what you want

Monthly totals
Total Number of trades per month
Total Number of trades per period
Percentage of Total trades for the period
Number of Active brokers per month

Broker statistics
Number of broker trades Within the month
Number of broker trades Within the period
Broker trades as Percentage of total trades for the month
Broker trades as Percentage of total trades for the period


TABLE FILE TRADES
COUNT TRADER_ID AS 'PERIOD_TRADES'
BY TRADER_ID
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS PDTRADES FORMAT FOCUS INDEX TRADER_ID
END
-RUN
JOIN TRADER_ID IN TRADES TO TRADER_ID IN PDTRADES AS J1
DEFINE FILE TRADES
Period/A1=' ';
END
TABLE FILE TRADES
SUM CNT.TRADER_ID WITHIN MONTH AS 'Total Number ,of trades, per month'
CNT.TRADER_ID WITHIN Period AS 'Total Number ,of trades, per period'
PCT.CNT.TRADER_ID AS 'Percentage of,Total trades, for the period'
BY Period NOPRINT
BY MONTH
SUM
CNT.DST.TRADER_ID WITHIN MONTH NOPRINT
COMPUTE TRADERS1/I5 MISSING ON=IF MONTH NE LAST MONTH THEN C4 ELSE MISSING; AS 'Number of,Active brokers,per month'
TRADER_ID
CNT.TRADER_ID WITHIN TRADER_ID AS 'Number of,broker trades, Within the month'
FST.PERIOD_TRADES WITHIN TRADER_ID AS 'Number of,broker trades, Within the period'
PCT.CNT.TRADER_ID WITHIN MONTH AS 'Broker trades,as Percentage of total trades, for the month'
PCT.CNT.TRADER_ID WITHIN Period AS 'Broker trades,as Percentage of total trades, for the period'
BY Period NOPRINT
BY MONTH
BY TRADER_ID NOPRINT
ON TABLE SET NODATA ' '
END
-RUN
 
Report This Post
Platinum Member
posted Hide Post
ThanX JG for reply
ilook for it;

JG, i want to Create Pie Graph for MemberID and Number_of_Enquiry:MemberID is numaric value like 117,111,112

i want to display as Corsponding Name such as Abraham,Daivaid,Araan
at the legend of Graph X-axis and the number of Enquiry as Perecentage to its Total

i apperciate for your help


WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.
 
Posts: 118 | Registered: February 08, 2006Report This Post
<JG>
posted
Look at the following post, it should point you in the right direction.

https://forums.informationbuilders.com/eve/forums/a/...691033831#9691033831
 
Report This Post
Platinum Member
posted Hide Post
ThanX very much JG for your Help


WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.
 
Posts: 118 | Registered: February 08, 2006Report This Post
Platinum Member
posted Hide Post
JG,

is there any way to do it from developer studio insted to Coding, Cuz am feel lost when i read your Post:

all i did i create the macro and i want to register it in WFServlet, i use WF 7.1.3 and i explore in Developer Studio in Option menue, there is Format tabe specified the Template will be used with Excel sheet but i think this template suposed to be register in WF.

can you guide me please.


WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.
 
Posts: 118 | Registered: February 08, 2006Report This Post
<JG>
posted
If you have a valid Excel template that you want to use then it must be in one of the directories
in your APP PATH otherwise WebFocus will not find it.

You should be able to create the report via dev studio However you will not be able to open the
sample code in the report painter because even 713 cannot handle the MISSING ON on the COMPUTE statement.

Delete MISSING ON and it should open.
 
Report This Post
Platinum Member
posted Hide Post
hi Tony,

i prepare the Excel Template with the *.XLT extension and i put it in Application path,

i generate Excel Report from WF Dev-Studio

but still WF cant find The Template to use it


WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.
 
Posts: 118 | Registered: February 08, 2006Report This Post
Expert
posted Hide Post
Qalqili,

Try reading the documentation as well as the posts. You will find that the Excel file has to be saved as a web archive and not a template.

For reference, look at the tech documentation library accessible via the link at the top of each forum page.

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
ThanX Tony for fast reply

i will Serach in Publication Document


WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.
 
Posts: 118 | Registered: February 08, 2006Report 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     Calculate the Percentage from Field

Copyright © 1996-2020 Information Builders