Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » need to avoid column sort on Cross Tab
need to avoid column sort on Cross Tab [message #368610] Mon, 15 June 2009 13:26 Go to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello All,

I am having a Cross Tab with years as the "row part" and month as String
as the column names (Jan, Feb, Mar, ...)

Now Birt automatically sort the months alfabetically: Apr, Aug, Dec, ...

Cannot find a way to avoid that, any ideas?

Thanks,
Tero
Re: need to avoid column sort on Cross Tab [message #368622 is a reply to message #368610] Tue, 16 June 2009 14:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.windstream.net

Tero,

Can you try to put a sort on the crosstab with an expression similar to:

if( dimension["DateGroup"]["month"] == "Jan" ){
1;
}else if( dimension["DateGroup"]["month"] == "Feb" ){
2;
}else if..
..
..
..

Jason


Tero wrote:
> Hello All,
>
> I am having a Cross Tab with years as the "row part" and month as String
> as the column names (Jan, Feb, Mar, ...)
>
> Now Birt automatically sort the months alfabetically: Apr, Aug, Dec, ...
>
> Cannot find a way to avoid that, any ideas?
>
> Thanks,
> Tero
>
Re: need to avoid column sort on Cross Tab [message #368645 is a reply to message #368622] Wed, 17 June 2009 11:39 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Thanks Jason,

looks a bit odd to have to write those 12 IF's...
since the result of the query (in the Preview Results too) is already
sorted as I would like to have it.
Isn't there a way to avoid the cube/crosstab sorting that again?

Regards,
Tero
Re: need to avoid column sort on Cross Tab [message #368647 is a reply to message #368645] Wed, 17 June 2009 13:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.windstream.net

Tero,

Are the month names in a Date dimension?

Jason

tero wrote:
> Thanks Jason,
>
> looks a bit odd to have to write those 12 IF's...
> since the result of the query (in the Preview Results too) is already
> sorted as I would like to have it. Isn't there a way to avoid the
> cube/crosstab sorting that again?
>
> Regards,
> Tero
>
Re: need to avoid column sort on Cross Tab [message #368676 is a reply to message #368647] Thu, 18 June 2009 15:53 Go to previous messageGo to next message
tero  is currently offline tero Friend
Messages: 58
Registered: July 2009
Member
Hello Jason,

Nop, they are String.
In the query I am ordering by another field to get the correct order.

Is that crosstab ordering the results in any case?

Thanks
Tero
Re: need to avoid column sort on Cross Tab [message #368680 is a reply to message #368676] Thu, 18 June 2009 18:26 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.windstream.net

Tero,

I am pretty sure the date dimension will order correctly.

Jason

tero wrote:
> Hello Jason,
>
> Nop, they are String.
> In the query I am ordering by another field to get the correct order.
>
> Is that crosstab ordering the results in any case?
>
> Thanks
> Tero
>
Previous Topic:How to display footer only on first page
Next Topic:how to deal with no resultset
Goto Forum:
  


Current Time: Thu Apr 25 01:26:41 GMT 2024

Powered by FUDForum. Page generated in 0.03484 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top