cancel
Showing results for 
Search instead for 
Did you mean: 

incorrect query aggregation result

Former Member
0 Kudos

Dear all,

I have a query with aggregation result incorrect as following:

Quantity Price Amount

2 100 200

3 50 150

result 5 150 750

From above, you can see that query result 750 is calculated by aggregating quantity and price accordingly and then muliply them after aggregation. However, price can not be aggregated and the correct query result for amount should be 200+150=350.

How can I get the correct result? Please advise. Thanks.

Jin Ming

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Jin,

As per jerome said, you need to check the aggregation properties for the key figure Amount if it as a Calculated Keyfigure. If it is a CKF then you need to go the enhance option there and set as before aggregation there. So that you can have the desired result. Please try it out once.

Regards,

Gattu

Former Member
0 Kudos

Hello Jin

By defauly system performs after aggregation which is resulting 5 * 150 = 750. Just go to property of Amount KF and in the bottom side select the option before aggregation you will get 200 + 150 = 350

Thanks

Tripple k

Former Member
0 Kudos

Dear Tripple k,

I am using BI 7.0 and in the property of amount there is no option of "before aggregation".

Former Member
0 Kudos

Check properties of keyfigures in query designer.

Former Member
0 Kudos

Jerome,

could you be more spacific?Which attribute should I check?Thanks.