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] Calculate Across Columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Calculate Across Columns
 Login/Join
 
Member
posted
Hello,


TABLE FILE CAR
SUM SALES
BY COUNTRY
ACROSS SEATS
END

 			SEATS 
 		2 	4	 5
ITALY  			4800  
JAPAN 			78030  
W GERMANY 		8900 	79290


It try to calculate a formulary based on 2 across columns (Column 3 div 2) :

 			SEATS 
 		2 	4	 5 	3/2
ITALY  			4800  
JAPAN 			78030  
W GERMANY 		8900 	79290 	9,91


Is-it possible ?
Thanks in advance.

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


WebFocus 7.7 (DB2 Web Query 1.1.2). IBM i
 
Posts: 11 | Location: France | Registered: January 13, 2012Report This Post
Expert
posted Hide Post
Yes, using FML. Look for "Creating Financial Reports With Financial Modeling Language (FML)" in the Creating Reports With WebFOCUS Language documentation or Creating Financial Reports With Financial Report Painter.


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
Member
posted Hide Post
Thank you. Below the solution :

  
TABLE FILE CAR
SUM SALES
BY COUNTRY
ACROSS SEATS
RECAP
MyDiv/D6.2=C3/C2;
END

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


WebFocus 7.7 (DB2 Web Query 1.1.2). IBM i
 
Posts: 11 | Location: France | Registered: January 13, 2012Report This Post
Expert
posted Hide Post
You're posting a question on a WebFOCUS forum so I provided a WebFOCUS solution. With an ACROSS, a "simple divide" is not necessarily simple - what if there are more than three across columns, how would you address the individual columns?

This is what FML is for - it's not really another tool, it's an extension to the WebFOCUS code.

But since you're on DB2 Web Query, this all might be a moot point.


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
Member
posted Hide Post
Sorry, I modified my previous post.
Thank you again for your precious help.


WebFocus 7.7 (DB2 Web Query 1.1.2). IBM i
 
Posts: 11 | Location: France | Registered: January 13, 2012Report This Post
Expert
posted Hide Post
That will definitely work when you can be specific about the columns (C1, C2, C3, etc). FML is used you don't know the number of columns and for much more sophisticated stuff.

"precious"? hmmmm......


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
  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] Calculate Across Columns

Copyright © 1996-2020 Information Builders