Replies: 1 comment
-
I would use a pure SQL solution to create a table with N columns. The idea is like this: SQL Part: Step by step, use CTEs to develop your query:
The rest is layout work in BIRT: Use a normal "table" item to show the data, not a cross tab. Add a group based on logical_matrix_num to the data. Use the "measureX" columns to display the data in your green columns. Use the "headerX" columns for the corrsponding column headers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a report where I'd like to join a crosstab with some additional columns which are not part of the crosstab itself. Please see the screenshot below.
The green columns show a cross tab where the product code is a dimension, the month of the sale is a dimension, and the dollar sales are a measure. There can be many months of sales in actual report - 12 months, 24 months, or more.
It's easy to create a crosstab which has these green columns, but I'd like to join the crosstab with some additional columns, which are derived from other database tables. Columns B->D have some product data which is derived from a product table. Columns H and I have some additional information which is derived from a stock on hand table, and a purchase order table. Columns B->D and H->I are columns which are fixed, whereas Columns E->G can be variable depending on the date range for the report.
I came across one solution (https://forums.opentext.com/forums/developer/discussion/301542/combining-static-and-dynamic-columns-in-a-birt-report) which involves using a grid and aligning a table with a crosstab. This seems to work when producing HTML and ODS format but not when using XLSX output. Also, there are some hidden columns which don't get properly hidden from the output.
I can implement the desired report using Java/Javascript - I can join a crosstab and table in SQL and dynamically build a table in BIRT, without using BIRT's crosstab feature. But this if quite painful compared to implementing a report in the report designer.
Are there any alternative where I can make use of BIRTs crosstab feature?
Beta Was this translation helpful? Give feedback.
All reactions