Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3189

BEx Key Figure Calculation

$
0
0

Hi All

I have a requirement as mentioned below. Can someone please help me with the issue I’m facing?

 

PROD HIERARCHY, EMP ID1 and EMP ID 2 are Characteristics from Infoprovider(Rows). The requirement is to check if EMP ID1=EMP ID2 and get the Sales only when EMP ID1=! EMP ID2

For this, I created Replacement path variables for EMP ID1 and EMP ID2 and created a CKF(Flag). When EMP ID1=EMP ID2, the Flag=0. Below is the BEx output:

 

 

PROD HIERARCHYEMP ID1EMP ID2FLAG(If EMP ID1=EMP ID2)SalesSales(EMP ID1=!EMP ID2)
AAA111111121101*10=10
222222231101*10=10
333333330100*10=0
BBB444444451101*10=10
555555550100*10=0
666666671101*10=10

 

 

I need to get total Sales for PROD HIERARCHY(when EMP ID1=!EMP ID2)

I cannot move EMPID1 and EMP ID2 into free chars as the calculation of Flag won’t happen if they are in Free Chars. I want PROD HIERACHY and Sales(when EMO ID=!EMP ID2)

I tried to hide the EMP ID 1 and EMP ID 2 but the output is like this

 

 

Current Output
PROD HIERARCHYSales(EMP ID1=!EMP ID2)
AAA10
10
0
BBB10
0
10

 

But I need the output like this.

Desired Output
PROD HIERARCHYSales(EMP ID1=!EMP ID2)
AAA20
BBB20

 

Can someone please help me in achieving this.

Thanks


Viewing all articles
Browse latest Browse all 3189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>