Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332329 - Using DataCubes with a 'count' summary as an Datasource for a CHART does not work.
Summary: Using DataCubes with a 'count' summary as an Datasource for a CHART does not ...
Status: VERIFIED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 2.6.2   Edit
Assignee: Heng Li CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard: Obsolete
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-10 13:22 EST by Rob Truban CLA
Modified: 2010-12-21 22:24 EST (History)
2 users (show)

See Also:


Attachments
Report that uses a datacube, crosstab and 2 bar charts (99.74 KB, application/octet-stream)
2010-12-10 13:22 EST, Rob Truban CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Truban CLA 2010-12-10 13:22:24 EST
Created attachment 184971 [details]
Report that uses a datacube, crosstab and 2 bar charts

When using a datacube with a 'count' summary field as a data source for  a chart produces the incorrect results.  The attached report illustrates the problem.  You will see a CrossTab which displays the values correctly for both a sum and a count summary field. The chart that uses a sum field works correctly, but the chart that uses the count field does not.
Comment 1 Heng Li CLA 2010-12-20 21:54:24 EST
The cause of this bug is the default aggregation of measure binding on report item is not true, it should be set as SUM rather than COUNT. Because the COUNT aggregation for measure binding on report item has no more sense, so in BIRT, there is a special convertion to use SUM instead of COUNT.
Now fixed this in chart UI, when user select cube set, just doing above rule to add measure bindings on report item.
Please remove old chart from report and insert a new chart to verify this bug.
Comment 2 Rob Truban CLA 2010-12-20 22:37:13 EST
(In reply to comment #1)
> The cause of this bug is the default aggregation of measure binding on report
> item is not true, it should be set as SUM rather than COUNT. Because the COUNT
> aggregation for measure binding on report item has no more sense, so in BIRT,
> there is a special convertion to use SUM instead of COUNT.
> Now fixed this in chart UI, when user select cube set, just doing above rule to
> add measure bindings on report item.
> Please remove old chart from report and insert a new chart to verify this bug.

This bug is there no matter what chart type you pick...   You can not change the aggregation method on the Series 1 definition.  It is greyed out, that is the point of the bug.  

I have also verified this bug is present in Actuate BIRT Designer Professional 11.

This bug is not resolved in my opinion, unless I am missing something.
Comment 3 Heng Li CLA 2010-12-20 22:58:35 EST
(In reply to comment #2)
> (In reply to comment #1)
> > The cause of this bug is the default aggregation of measure binding on report
> > item is not true, it should be set as SUM rather than COUNT. Because the COUNT
> > aggregation for measure binding on report item has no more sense, so in BIRT,
> > there is a special convertion to use SUM instead of COUNT.
> > Now fixed this in chart UI, when user select cube set, just doing above rule to
> > add measure bindings on report item.
> > Please remove old chart from report and insert a new chart to verify this bug.
> 
> This bug is there no matter what chart type you pick...   You can not change
> the aggregation method on the Series 1 definition.  It is greyed out, that is
> the point of the bug.  
> 
> I have also verified this bug is present in Actuate BIRT Designer Professional
> 11.
> 
> This bug is not resolved in my opinion, unless I am missing something.

Chart consuming cube is not same as chart consuming data set, cube just supports some special aggregations. So chart consuming cube doesn't support custom aggregation for y series,the aggregation UI is still disabled under this case.
Comment 4 Xiaoying Gu CLA 2010-12-21 22:24:08 EST
Verified in daily build 2.6.2.v20101222-0630