Missing column [message #703295] |
Wed, 27 July 2011 07:57  |
Eclipse User |
|
|
|
Hi All,
I am using a code to generate a report using BIRT.
Here, I am using "Month" in COLUMN of crosstab.
If month have 3 records for ex Jan, Feb, Mar Then cross tab displays that records only.
I want all the Months in column like,
JAN Feb Mar Apr May ...... Dec
26 20 35 - - -
But, Now it displays, First 3 columns.
Plz help me on this
|
|
|
|
|
|
|
|
|
|
|
Re: Missing column [message #713990 is a reply to message #713896] |
Tue, 09 August 2011 10:31   |
Eclipse User |
|
|
|
Add a computed column with an expression similar to this:
var mn = 0;
if( dataSetRow["month"] == "Jan" ){
mn= 0;
}
if( dataSetRow["month"] == "Feb" ){
mn= 1;
}
if( dataSetRow["month"] == "Mar" ){
mn= 2;
}
if( dataSetRow["month"] == "Apr" ){
mn= 3;
}
if( dataSetRow["month"] == "May" ){
mn= 4;
}
if( dataSetRow["month"] == "Jun" ){
mn= 5;
}
new Date(2010, mn, 1, 1, 1, 1, 1);
Set its data type to date.
Jason
On 8/9/2011 6:30 AM, jeyinul wrote:
> Hi jason,
>
> Thanks for your reply.
> I tried jason. But it displays error saying that can not convert.
>
> Please let me know some other way or script. I don't the script.
> Please send me Jason.
>
> Thanks and Regards,
> Jeyinul.
>
|
|
|
|
Re: Missing column [message #714499 is a reply to message #714344] |
Wed, 10 August 2011 12:36  |
Eclipse User |
|
|
|
Did you use the computed column in the data cube and set its type to
date/time? Make sure you have the cross tab set to show empty values.
Look at Empty Rows/Columns property in the property editor. If you have
some way to reproduce the issue it would be better.
Jason
On 8/10/2011 7:30 AM, jeyinul wrote:
> Thanks Jason,
>
> Its working. I tracked that field in "Cross tab - column". But still i
> am having the problem to display all the months.
>
> I am using one filter. The filter is Project. It displays the records
> based on the project. In that Particular project, There are 3 records
> for Jan, Feb, Mar.
>
> So, it displays the records for only 3 months.
>
> If the month is not having a value then by default it is hidden.
>
> Same Problem Jason.
>
> Can you help me any other way.
>
> Thank you once again for your effort on this.
>
> Regards,
> Jeyinul.
|
|
|
Powered by
FUDForum. Page generated in 0.05349 seconds