Bug 350117 - "Bottom n" and "Greater than" filters on same crosstab group level results in runtime exception
Summary: "Bottom n" and "Greater than" filters on same crosstab group level results in...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7.1   Edit
Assignee: Lin Zhu CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-23 00:19 EDT by Kevin Rahe CLA
Modified: 2011-07-04 03:35 EDT (History)
1 user (show)

See Also:


Attachments
Sample report in which the problem is manifested (25.42 KB, application/force-download)
2011-06-23 00:22 EDT, Kevin Rahe CLA
no flags Details
Exception logged by a different report with the same problem (5.79 KB, application/octet-stream)
2011-06-23 00:24 EDT, Kevin Rahe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Rahe CLA 2011-06-23 00:19:36 EDT
Build Identifier: M20100909-0800

Creating a "Greater than" filter based on an aggregate value directly from the cube and a "Bottom n" filter for the same group level based on a derived value on a crosstab report results in an exception.

Reproducible: Always

Steps to Reproduce:
See attached test case based on Classic Models.
Comment 1 Kevin Rahe CLA 2011-06-23 00:22:32 EDT
Created attachment 198441 [details]
Sample report in which the problem is manifested
Comment 2 Kevin Rahe CLA 2011-06-23 00:24:01 EDT
Created attachment 198442 [details]
Exception logged by a different report with the same problem
Comment 3 Kevin Rahe CLA 2011-06-23 00:26:08 EDT
While there are other issues with defining multiple filters on the same group level in the same crosstab, such as the inability to control the order in which they're applied (suggested enhancement there), doing so shouldn't result in an exception despite any other caveats.
Comment 4 Kevin Rahe CLA 2011-06-23 00:27:46 EDT
This problem exists in BIRT 3.6.1
Comment 5 Kevin Rahe CLA 2011-06-23 10:49:45 EDT
I have found a workaround until this problem is fixed.  Instead of referring to the derived column in the formula for the "Bottom n" filter, reuse the formula that computes the derived column's value as the filter's formula (in the attached sample that would mean replacing 'data["HALFEXTPRICE"]' with 'data["EXTPRICE_Order/ORDERNUMBER"] / 2').  This will avoid the exception.  (Though it still won't provide any control over the order in which filters are applied, which I would still suggest as an enhancement.)
Comment 6 Lin Zhu CLA 2011-07-04 03:35:20 EDT
Thank you for the detailed info.The bug is fixed in latest build.