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] accordian report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] accordian report
 Login/Join
 
Platinum Member
posted
Hi
I have an issue with an accordian reporting. My report shows totals and calcs for 1st by group. When you expand on the group it should show totals and calcs for each skill(s). There can be multiple skills when you expand. Only the first skill has correct tot and calcs. The other skills has correct totals but the calcs are not calculating correctly. Basically, I am having probles with calcs on the second by field when I expand. Here is my code
 -* File skilltest.fex
ENGINE SQLMSS SET DEFAULT_CONNECTION IVB
SQL SQLMSS
EX ORBIT.dbo.AHTSkill '&dte','&edte'
;


TABLE FILE SQLOUT
PRINT
     EmpDivisionName
     skill
     calls
     acdtime
     acwtime
     holdacdtime
WHERE skill IN (239,17,21);
ON TABLE HOLD AS DIV
END

TABLE FILE DIV
SUM
     calls
     acdtime
     acwtime
     holdacdtime
ON TABLE HOLD AS AHTDIV FORMAT FOCUS
END
TABLE FILE DIV
SUM
     calls/I11C AS 'Calls Ans'
     COMPUTE AHT/D8.2 = IF calls EQ 0 THEN 0 ELSE ( acdtime + acwtime + holdacdtime ) / calls;
     COMPUTE AVGTalk/D8.2 = IF calls EQ 0 THEN 0 ELSE acdtime / calls;
 AS 'AVG Talk'
     COMPUTE AVGACW/D8.2 = IF calls EQ 0 THEN 0 ELSE acwtime / calls;
 AS 'AVG ACW'
     COMPUTE AVGHold/D8.2 = IF calls EQ 0 THEN 0 ELSE holdacdtime / calls;
 AS 'AVG Hold'
BY EmpDivisionName AS 'Division'
SUM
     calls/I11C AS 'Calls Ans'
     COMPUTE AHT/D8.2 = IF calls EQ 0 THEN 0 ELSE ( acdtime + acwtime + holdacdtime ) / calls;
     COMPUTE AVGTalk/D8.2 = IF calls EQ 0 THEN 0 ELSE acdtime / calls;
 AS 'AVG Talk'
     COMPUTE AVGACW/D8.2 = IF calls EQ 0 THEN 0 ELSE acwtime / calls;
 AS 'AVG ACW'
     COMPUTE AVGHold/D8.2 = IF calls EQ 0 THEN 0 ELSE holdacdtime / calls;
 AS 'AVG Hold'
BY EmpDivisionName AS 'Division'
BY skill
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE SET EXPANDABLE ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
END 


Thanks for any help you can provide!

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


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Member
posted Hide Post
Had the same problem until I put the numerator and denominator as NOPRINTs in front of the Computes in the accordian section.

TABLE FILE B_SKU_RASH_ICN502F
SUM
CNT.NA_ITEM_NUMBER/I11C AS '# of SKU''s'
'INVENTORY$/P13.2CM' AS 'Inventory ,Dollars'
COMPUTE Margin1/D12.2 = ( ( B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.SALES_$___CURRENT - B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.COST_$___CURRENT ) / B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.SALES_$___CURRENT ) * 100;
AS 'Margin'
COMPUTE Turns1/D12.2 = ( B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.TURN_NUMERATOR_CURRENT / B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.TURN_DENOMINATOR_CURRENT );
AS 'Turns'
COMPUTE PITTRUE/D12.2 = ( B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.TURN_NUMERATOR_CURRENT / B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.TURN_DENOMINATOR_CURRENT ) * ( ( B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.SALES_$___CURRENT - B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.COST_$___CURRENT ) / B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.SALES_$___CURRENT );
AS 'PIT'
BY GROUP_NUM NOPRINT
BY SEQ_NUM NOPRINT
BY CATEGORY_CODE NOPRINT
BY CATEGORY_DESC AS 'Category'
SUM
CNT.NA_ITEM_NUMBER AS '# of SKU''s'
'INVENTORY$/P13.2CM' AS 'Inventory ,Dollars'
'SALES_$___CURRENT' NOPRINT
'COST_$___CURRENT' NOPRINT
COMPUTE Margin1/D12.2 = ( ( B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.SALES_$___CURRENT - B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.COST_$___CURRENT ) / B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.SALES_$___CURRENT ) * 100;
AS 'Margin'
TURN_NUMERATOR_CURRENT NOPRINT
TURN_DENOMINATOR_CURRENT NOPRINT
COMPUTE Turns1/D12.2 = ( B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.TURN_NUMERATOR_CURRENT / B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.TURN_DENOMINATOR_CURRENT );
AS 'Turns'
COMPUTE PITTRUE/D12.2 = ( B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.TURN_NUMERATOR_CURRENT / B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.TURN_DENOMINATOR_CURRENT ) * ( ( B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.SALES_$___CURRENT - B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.COST_$___CURRENT ) / B_SKU_RASH_ICN502F.B_SKU_RASH_ICN502F.SALES_$___CURRENT );
AS 'PIT'
BY GROUP_NUM NOPRINT
BY SEQ_NUM NOPRINT
BY CATEGORY_CODE NOPRINT
BY CATEGORY_DESC AS 'Category'
BY Performance
ACROSS TypeofAccount AS ''

ON GROUP_NUM SUBFOOT WITHIN
"."
ON TABLE SUBHEAD
 
Posts: 1 | Registered: November 20, 2006Report This Post
Platinum Member
posted Hide Post
Thanks! Works great!


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 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     [Solved] accordian report

Copyright © 1996-2020 Information Builders