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] Across, OVER dummy row

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Across, OVER dummy row
 Login/Join
 
Gold member
posted
Hi All,

I need to bring the data as follows , can anybody help me regarding the same

COLA COLB COLC
-----------------------------------
A 10 40 COLA + COLB
D 20 50 COLA + COLB
G 30 60 COLA + COLB
J 60 150 (G/A)

I need to get the Last cell of Jth row value by logic (G/A) row total values of COLC not just COLA + COLB

A, D , G ,J are columns which I have used OVER to bring it as rows and COLA,COLB,COlC are across column values.

Thanks in Advance

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


WebFOCUS 7.6.10
Windows
Output: Excel,PDF
 
Posts: 78 | Registered: January 07, 2008Report This Post
Expert
posted Hide Post
Please use the demo file CAR to illustrate what you require, all WebFOCUS users have the CAR file.

This is code using the CAR file:
TABLE FILE CAR
SUM 
WEIGHT AS ''
OVER
HEIGHT AS ''
OVER
LENGTH AS ''
BY COUNTRY
BY CAR
END
Please try creating some code to mimic what you want to do.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
This looks like a job for...

FML


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Waz, I don't know why but the sound track of "Mission ... Imposible!" just came to my mind right after I read your post Big Grin



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Master
posted Hide Post
Subbu, as Waz said you can try with FML. It will give some more control over the calculation.
TABLE FILE CAR
SUM
DEALER_COST AS '<b>Dealer Cost</b>'
RETAIL_COST AS '<b>Retail Cost</b>'
COMPUTE TOTAL_COST/D20=DEALER_COST+RETAIL_COST; AS '<b>Row Total</b>'
COMPUTE HEADER_TEXT/A50='<center><b>Pivot Report Using FML</b></center>'; NOPRINT
FOR COUNTRY
'ENGLAND' AS '<b>England</b>' OVER
'FRANCE' AS '<b>France</b>' OVER
'ITALY' AS '<b>Italy</b>' OVER
" " OVER
RECAP COLTOT(1,2)/D20=R1+R2+R3; AS '<b>Column Total</b>' OVER
RECAP COLTOT(3)/D20.2=R3/R1;
ON TABLE SET PAGE NOLEAD
HEADING
"</1 <HEADER_TEXT </1"
END
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Expert
posted Hide Post
quote:
Mission ... Imposible!


Is that the one with Samuel L Jachson Smiler


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
Thanks! for all your help

Great! solution.


WebFOCUS 7.6.10
Windows
Output: Excel,PDF
 
Posts: 78 | Registered: January 07, 2008Report This Post
Gold member
posted Hide Post
I got the solution Thanks!

Please ignore below message
------------

Hi Ram,

The solution Which u gave is fine. I want to have a little change in that. Now as per your existing code, the country values will come as Rows and the dealer cost and retail cost will come as columns.

I want to make coury as columns and dealer and retails cost as rows. Adding to this Now I want to acheive the row total and col to total.

but the last bottom calculated value should be the division of G/A which I specified in the first posting.

What I mean to say is COLA,COLB should be country names as the columns and Dealer, Retail cost should be as (A,D) rows as per my first post. And I want to that last row last cell
calculation.

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


WebFOCUS 7.6.10
Windows
Output: Excel,PDF
 
Posts: 78 | Registered: January 07, 2008Report 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] Across, OVER dummy row

Copyright © 1996-2020 Information Builders