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] Need average for Percentage column in row total

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Need average for Percentage column in row total
 Login/Join
 
Platinum Member
posted
I have a Total Percentage column that is being totalled instead of averaged in my Total row. I've looked through and found several instances of Across-Total and RECOMPUTE, but I can't get them to line up. My '> 120 Days %' always comes out as 278% instead of the 17% I'm looking for. How do I convert one column in my Row Total to be an average and not a total?

This is coming from an SQL query and so, naturally, my table it SQLOUT.

TABLE FILE SQLOUT
SUM
     Current/P33.2MC
     31___60_Days/P33.2MC
     61___90_Days/P33.2MC
     91___120_Days/P33.2MC
     121___150_Days/P33.2MC
     151___180_Days/P33.2MC
     __180_Days/P33.2MC
     Total/P33.2MC
     ___120_Days/P33.2MC
     COMPUTE 120_PERC/D2% = COLUMN0010 * 100; AS '% > 120'
BY  FSC_Reporting_Category
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END 


Any suggestions of where to look for answers would be appreciated!

Thanks,
Tony

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


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 116 | Location: Birmingham, Al | Registered: July 23, 2015Report This Post
Virtuoso
posted Hide Post
Tony,
I assume that COLUMN0010 is the percentage that you multiply by 100 to get an integer.
Did you try:
ON TABLE SUBTOTAL AVE. 120_PERC 


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
I couldn't get the subtotal and row total to appear together. It was either one or the other.

I tried a different approach where I eliminated the SQL that created COLUMN0010 and instead did a COMPUTE to create the percentage column. This allowed the SUMMARIZE command to do the work.

I appreciate your input regarding SUBTOTAL as I can now add it to my list of tools. Thanks!!


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 116 | Location: Birmingham, Al | Registered: July 23, 2015Report 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] Need average for Percentage column in row total

Copyright © 1996-2020 Information Builders