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.
JOBCODE SALARY DEPARTMENT PCT A01 19,000 PRODUCTION 100.00% A07 40,000 MIS 45.00% PRODUCTION 55.00% A15 53,724 PRODUCTION 100.00% A17 83,824 MIS 64.57% PRODUCTION 35.43% B02 50,680 MIS 36.46% PRODUCTION 63.54% B03 36,960 MIS 100.00% B04 42,900 MIS 50.77% PRODUCTION 49.23% B14 13,200 MIS 100.00%
Hi guys I have to graph the above using a VLINE2 graph to capture the percentages on one axis and the total on the other axis. Y1 in % and Y2 in real numbers..i.e 19,000
The trick is that graph is going to be dynamic therefore the user will first select the department…. For example user selects department: MIS for CURR_JOBCODE A07. The graph should display 45% for MIS on Y1 and on 40,000 on Y2.
My complication is that I cant add the TOTALSALARY field in the graph because of the by field. and i cant use the DST function with a graph....
any suggestions???
Here is the code:
TABLE FILE EMPLOYEE PRINT * ON TABLE HOLD AS TRENDS FORMAT ALPHA END DEFINE FILE TRENDS TOTALSALARY/D20 = CURR_SAL; SALARY/D20 = CURR_SAL; END TABLE FILE TRENDS SUM TOTALSALARY BY CURR_JOBCODE SUM COMPUTE PCT/D8.2S% = SALARY/TOTALSALARY * 100; BY CURR_JOBCODE BY DEPARTMENT ON TABLE HOLD AS SOURCE END GRAPH FILE SOURCE PRINT PCT AS '=>' BY DEPARTMENT ACROSS CURR_JOBCODE AS '' ON GRAPH SET LOOKGRAPH VLINE2 ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET GRMERGE ON ON GRAPH SET VAXIS 290 ON GRAPH SET HAXIS 1200 ON GRAPH SET 3D OFF ON GRAPH PCHOLD FORMAT PNG ON GRAPH SET GRAPHSTYLE * (...) ENDSTYLE ENDThis message has been edited. Last edited by: LEX-IA,
PROD: WebFOCUS 7.1.0 on Linux/Tomcat 5.5.12 (standalone)/Informix on AIX TEST: WebFOCUS 7.1.3 on Linux/Tomcat 5.5.16 (standalone)/Informix on AIX
Posts: 53 | Location: Montreal,Quebec,Canada | Registered: February 13, 2006
Hi Kalyan, Thanks for your reply but this wont work.The by field is giving me the salary as well as the pct by jobcode. I am looking for the percentage by jobcode and the total salary. The total salary is totalled not by jobcode.This message has been edited. Last edited by: LEX-IA,
PROD: WebFOCUS 7.1.0 on Linux/Tomcat 5.5.12 (standalone)/Informix on AIX TEST: WebFOCUS 7.1.3 on Linux/Tomcat 5.5.16 (standalone)/Informix on AIX
Posts: 53 | Location: Montreal,Quebec,Canada | Registered: February 13, 2006