cancel
Showing results for 
Search instead for 
Did you mean: 

Formula at BEx query get wrong result

former_member245426
Discoverer
0 Kudos

Hi,

Please I need your help in Bex query. We have key figure called Balance, this KF can be either positive or negative value. Our client requirement is to display two new key figures, one for positive amount only and the other for negative.

The Positive and negative are calculated as formula if condition, the result is good at customer level but when drill up at group customer level the result get wrong.

Please any idea to help.

result.png

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi;

Can you try exception aggregation (summation / customer)?

Hope it helps;

Regards

Answers (2)

Answers (2)

john_hawk
Active Contributor
0 Kudos

Hi Afrain,

You need to use some Boolean logic in your calculated key figures or formulas

KF = key figure (can be negative or positve)

Calculated KF_Pos = (KF > 0 ) {true} * KF = KF if positive, else 0

Calculated KF_Neg = (KF < 0 ) {true} * KF = KF if negative, else 0

Let us know if it works!

John Hawk

kohesco
Active Contributor
0 Kudos

Hi,

can you check if you have a

Debit/Credit Indicator, if not create one in the transactional flow, optionally creating KF respectively.

this would make things easier and more transparent.

Grtz

Koen