Hi,
I am facing a problem with my datacube, i hope you can help me on this.
I have a datasource which is a csv file. In the csv file (and in my dataset so) one of the columns is "Region" which is corresponding to a location like 'US' or 'UK'. Others column can be dates or clients name.
So i have created a computed column to determine what is the geographic zone of each client/region:
(computed column name : 'type region')
Everything is ok for the moment. When a client is from UK, the "type region" computed column is correctly displaying 'Europe'.
Then, i have created a datacube, in my groups (dimensions) i have : "Type region" and below 'Region'. As a summary field a count of all clients.
So, my reports looks like :
But, if there is no client in the region 'SA', then the column is not displayed. I want to display it.
When i am checking in my crosstab options "Empty Rows/Columns" -> Show empty columns, then the behavior is strange, look what i have :
Is there any way to force BIRT to show all columns but in the right place ?
I have tried the option "Show if blank" in crosstab advanced options instead, but no change.
Do you have an idea ?
Using BIRT 4.2.1
Thanks
I am facing a problem with my datacube, i hope you can help me on this.
I have a datasource which is a csv file. In the csv file (and in my dataset so) one of the columns is "Region" which is corresponding to a location like 'US' or 'UK'. Others column can be dates or clients name.
So i have created a computed column to determine what is the geographic zone of each client/region:
(computed column name : 'type region')
Quote
if ((row["Region"] == 'CE') || (row["Region"] == 'UK'))
"Europe"
if ((row["Region"] == 'SA') || (row["Region"] == 'US'))
"America"
"Europe"
if ((row["Region"] == 'SA') || (row["Region"] == 'US'))
"America"
Everything is ok for the moment. When a client is from UK, the "type region" computed column is correctly displaying 'Europe'.
Then, i have created a datacube, in my groups (dimensions) i have : "Type region" and below 'Region'. As a summary field a count of all clients.
So, my reports looks like :
| America | Europe | | US | SA | CE | UK | Row | (count) | (count) | (count) | (count) |
But, if there is no client in the region 'SA', then the column is not displayed. I want to display it.
When i am checking in my crosstab options "Empty Rows/Columns" -> Show empty columns, then the behavior is strange, look what i have :
| America | Europe | | US | SA | CE | UK | US | SA | CE | UK | Row | (count) | (count) | (count) | (count) | (count) | (count) | (count) | (count) |
Is there any way to force BIRT to show all columns but in the right place ?
I have tried the option "Show if blank" in crosstab advanced options instead, but no change.
Do you have an idea ?
Using BIRT 4.2.1
Thanks