BusinessObjects Board

SQL aggregation vs Projection function

Hi,

I have a issue with the object created in the Universe.

I have used Min() function in defining a measure object but the client had a concern on this saying it is causing inconsistency when used with other measure objects

 min(( round(sysdate -(table.Date_DT)) ))

Is there anyways so that i could provide a resolution on this.

The client says we are getting inconsistent results using this with other measure objects that have SUM() as the projection function at universe level.

We are on ORacle database.
Can we create the object in a different way to avoid the incosistency problems? Please advice.


Achilies :india: (BOB member since 2008-12-04)

your definition of “inconsistency” is not clear to me. Can you elaborate the issue by providing sample data? What output do you get with and without using your object with other measure objects? That way it will be clear where exactly the problem is.

Thanks,
Raghvendra Deshpande


Raghvendra Deshpande :india: (BOB member since 2008-05-26)

Thanks for the reply. Please find the details below.

#Mobject
=min(( round(sysdate -(table.Date_DT)) ))

For the above object, i have defined projection aggregation as SUM() and used SQL aggregation in the object defeinition as MIN().

The above object creates the below output:

Now i created the same included other objects as below

When i remove the second column:

The [Amnt] object is summing because the projection property is Sum rather than Min:

This is causing inconsistency.


Achilies :india: (BOB member since 2008-12-04)

Why would you want to sum a minimum?

Set the projection of a minimum to minimum

Please, read my post about proper definition of measures including SQL aggregation as well as projection here: diff between Select SUM (Table. Field) & Select Table. F


Andreas :de: (BOB member since 2002-06-20)

Thanks Mark,

Yes I have changed it to Minimum. But i am not clear what my client says.
He wants that to be fixed. But, though i change the SUM projection to MIN, the inconsistency does not go.

What exactly is meant i am still not clear.


Achilies :india: (BOB member since 2008-12-04)

:?

Please provide the outputs / examples you see now the projection is set to min.


Mak 1 :uk: (BOB member since 2005-01-06)

Thanks Mak.

The above given examples is what i can see even after i change the aggregation from SUM to MIN


Achilies :india: (BOB member since 2008-12-04)

Depending on what dimensions you wish to calculate the min for? You may need a calculation context to display what you want.

You seem to be talking about something else here. The sum would be expected behaviour for amount, if it has a sum projection.


Mak 1 :uk: (BOB member since 2005-01-06)