Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Aggregations in crosstabs
icon5.gif  Aggregations in crosstabs [message #668578] Fri, 06 May 2011 10:18 Go to next message
Marco  is currently offline Marco Friend
Messages: 216
Registered: August 2009
Senior Member
Hi,

How can I specify how exactly the measures should be aggregated?

Let's assume I have 3 dimensions:
A ... date
B ... organizational structure consisting of field country / city / site
C ... shift
And measures:
X ... site cost
Y ... accumulated number of units produced
All from a scripted data set which delivers multiple lines per dimension combination.

Now I want a crosstab between A and B. C is not relevant.
X should be the sum of all shifts (C), the sum of each period (A), the average of each unit (B).
Y should be the average of all shifts (C), the last of each period (A), the sum of each unit (B).

Where would I specify these aggregations?

What if I have more than 1 vertical dimension with different aggregation functions?

And you would help me a lot if you could tell me what are the relevant elements in the source of a report design since I need to do this programmatically.

Thanks a lot,
Marco
Re: Aggregations in crosstabs [message #668687 is a reply to message #668578] Fri, 06 May 2011 17:52 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Marco,

You should be able to put the aggregates in the cube itself. If you
could put together a csv file I could build an example off of it. I
have posted examples of using the de-api to create a crosstab on birt
exchange, but it is probably better to first design it in the designer
and then use the api to recreate what you want.

Jason

On 5/6/2011 6:18 AM, Marco wrote:
> Hi,
>
> How can I specify how exactly the measures should be aggregated?
>
> Let's assume I have 3 dimensions:
> A ... date
> B ... organizational structure consisting of field country / city / site
> C ... shift
> And measures:
> X ... site cost
> Y ... accumulated number of units produced
> All from a scripted data set which delivers multiple lines per dimension
> combination.
>
> Now I want a crosstab between A and B. C is not relevant.
> X should be the sum of all shifts (C), the sum of each period (A), the
> average of each unit (B).
> Y should be the average of all shifts (C), the last of each period (A),
> the sum of each unit (B).
>
> Where would I specify these aggregations?
>
> What if I have more than 1 vertical dimension with different aggregation
> functions?
>
> And you would help me a lot if you could tell me what are the relevant
> elements in the source of a report design since I need to do this
> programmatically.
>
> Thanks a lot,
> Marco
Re: Aggregations in crosstabs [message #668774 is a reply to message #668578] Sat, 07 May 2011 10:30 Go to previous message
Marco  is currently offline Marco Friend
Messages: 216
Registered: August 2009
Senior Member
Hi Jason,

Thanks for the answer. What do you mean exactly by putting the aggregations into the cube? Is there an element type aggregation? How is it composed?

How does this relate to the aggregation function of a measure, and the row and column aggregations I have seen somewhere?

With which service shall I provide you with the sample XLS? Anyway you should be able do make it in just 1 minute based the specs in the first post.

Thank you for your help.
Marco
Previous Topic:Download is "Forbidden"
Next Topic:Trigger problem with BIRT 2.5.0
Goto Forum:
  


Current Time: Wed Sep 18 20:10:46 GMT 2024

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

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

Back to the top