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.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.


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