Bug 187358 - Cross tab - Function list for measures and totals
Summary: Cross tab - Function list for measures and totals
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.2.0   Edit
Hardware: PC All
: P1 normal (vote)
Target Milestone: 2.2.0 RC3   Edit
Assignee: Birt-Report-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-16 15:09 EDT by Rima Kanguri CLA
Modified: 2007-06-07 01:44 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rima Kanguri CLA 2007-05-16 15:09:07 EDT
Based on team discussion the following has been agreed.

1)Cube Measure – We will only support subset of functions, following is the list
SUM
AVERAGE
MAX
MIN
FIRST
LAST
COUNT
COUNTDISTINCT

2)Cross tab subtotal and grand total function – We should support all the function supported currently by table BIRT.Total

SUM
COUNT
AVERAGE
WEIGHTEDAVG
MAX
MIN
STDDEV
FIRST
LAST
MODE
MEDIAN
VARIANCE
COUNTDISTINCT
Comment 1 Rima Kanguri CLA 2007-05-16 15:10:11 EDT
-Please assign to UI team after hte model changes are done. 
- We dont want to expose the functions that we dont plan to support, hence i have marked this bug for RC0
Comment 2 Xuelan Li CLA 2007-05-17 05:03:36 EDT
Model part is fixed. GUI will call IMetaDataDictiony.getElement().getProperty().getAllowedChoices to get the list of the functions defined in cube measure. And in the similar way get the allowed function list in aggregation.
Comment 3 Ivy Li CLA 2007-05-17 05:08:12 EDT
Model changes are done.
Comment 4 Rima Kanguri CLA 2007-05-17 17:28:42 EDT
UI Changes
-----------
1) UI should show the "cube measure" list in the cube builder
2) UI should show the cross tab subtotal/grand total function list in the cross tab UI


Comment 5 Wang Qiangsheng CLA 2007-05-17 22:51:14 EDT
GUI has fixed against 187499.
Comment 6 Rima Kanguri CLA 2007-06-04 18:51:19 EDT
I just noticed that the list shown by GUI for the cross tab aggregation builder is not correct. It should be the list described in list (2) of the bug description.
Comment 7 Lin Zhu CLA 2007-06-04 23:05:48 EDT
For cube measure, we should display:

SUM
AVERAGE
MAX
MIN
FIRST
LAST
COUNT
COUNTDISTINCT

For cube grand total, sub total, we should display:
SUM
COUNT
AVERAGE
WEIGHTEDAVG
MAX
MIN
STDDEV
FIRST
LAST
MODE
MEDIAN
VARIANCE
COUNTDISTINCT

For normal computed columns, we should all available Total.* functions.

So for cross tab total and sub total, we should only support a subset of currently supported BIRT Total function, rather than a full set. Meanwhile in the aggregation builder of all a table we should support full set of Total functions.





Comment 8 Rima Kanguri CLA 2007-06-05 17:05:14 EDT
For BIRT 2.2 we will support the following
 
1)Cube Measure – We will only support subset of functions, following is the
list
SUM
AVERAGE
MAX
MIN
FIRST
LAST
COUNT
COUNTDISTINCT
 
2)Cross tab subtotal and grand total function 
SUM
COUNT
AVERAGE
WEIGHTEDAVG
MAX
MIN
STDDEV
FIRST
LAST
MODE
MEDIAN
VARIANCE
COUNTDISTINCT
 

3) Table function list

SUM
COUNT
AVERAGE
WEIGHTEDAVG
MAX
MIN
STDDEV
FIRST
LAST
MODE
MEDIAN
VARIANCE
COUNTDISTINCT
isTopN
isTopNPercent
isBottomN
isBottonNPercent
movingAve, 
percentile, 
percentSum, 
percentileRank,
quartile, 
rank, 
runningcount, 
runningSum, 

Comment 9 Rick Lu CLA 2007-06-06 02:14:05 EDT
After cross-team discussion, got following agreements:

ComputedColumn supports all aggregation functions. Crosstab sub and grand total should only support a subset of functions as comments#8 illustrated.

To constrain the list for crosstab subtotal and grand total, UI need to hardcode since in the ROM schema level, we have no easy way to distinguish two scenarios.
Comment 10 Xuelan Li CLA 2007-06-07 01:44:52 EDT
Fixed.