Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332329

Summary: Using DataCubes with a 'count' summary as an Datasource for a CHART does not work.
Product: z_Archived Reporter: Rob Truban <robtruban>
Component: BIRTAssignee: Heng Li <liheeng>
Status: VERIFIED FIXED QA Contact: Xiaoying Gu <bluesoldier>
Severity: major    
Priority: P3 CC: bluesoldier, liheeng
Version: 2.6.1   
Target Milestone: 2.6.2   
Hardware: PC   
OS: Windows XP   
Whiteboard: Obsolete
Attachments:
Description Flags
Report that uses a datacube, crosstab and 2 bar charts none

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