IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Adding new computed fields in OLAP report
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Gold member
Posted
I am using OLAP to display dimensions. Is there any way to display a new column which will hold the sum of two rows of any BY column. i.e, Suppose I have count of cities of two country say AMERICA and AUSTRALIA.I want a new column as AMAUS (should be computed field) which holds the sum of cities of both country. how to achieve this in...any clue ?

Thks in advance.
 
Posts: 60 | Location: India | Registered: April 21, 2007Reply With QuoteEdit or Delete MessageReport This Post
JG
Master
Posted Hide Post
quote:
computed field


That is the correct answer.
 
Posts: 927 | Registered: February 24, 2005Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
Hi JG,
The new column AMAUS shoud be computed from the existing fields in the master file.There won't be any entry for the sum of cities of two country in database.It will dynamically calculate the values and display it in new column of the report.
Hope this helps!

Thanks.
 
Posts: 60 | Location: India | Registered: April 21, 2007Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Shankar,

You have 2 rows each of which has a count. Now you want a new column in which you have the sum of the 2 counts. So there are a number of questions:
1. How many BYs
2. Does the report have only 2 rows?
3. What does it have to do with OLAP?


Daniel
wf 7.6/WinXP/IIS/SSA
www.wrapapp.com
www.srl.co.il

 
Posts: 594 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteEdit or Delete MessageReport This Post
Gold member
Posted Hide Post
Hi Danny-SRL,
The code which i am using to run the OLAP report is as:
TABLE FILE LOCDIM
SUM
CNT.CITY AS 'Number,of,Cities'
BY LOCATION_CATEGORY
BY LOCATION_GROUP
BY AREA
BY REGION
BY DISTRICT
BY EQSP

Now it is showing me count of cities sorted by different BY clauses.Is there any way to have another column which will be generated dynamically which will show me the count of cities of two AREA or REGION or other column in BY clause depending on the dimension values provided by user.
Hope u got the problem.

Thanks.
 
Posts: 60 | Location: India | Registered: April 21, 2007Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Adding new computed fields in OLAP report

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.