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 HIERARCHY | EMP ID1 | EMP ID2 | FLAG(If EMP ID1=EMP ID2) | Sales | Sales(EMP ID1=!EMP ID2) |
AAA | 1111 | 1112 | 1 | 10 | 1*10=10 |
2222 | 2223 | 1 | 10 | 1*10=10 | |
3333 | 3333 | 0 | 10 | 0*10=0 | |
BBB | 4444 | 4445 | 1 | 10 | 1*10=10 |
5555 | 5555 | 0 | 10 | 0*10=0 | |
6666 | 6667 | 1 | 10 | 1*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 HIERARCHY | Sales(EMP ID1=!EMP ID2) | |
AAA | 10 | |
10 | ||
0 | ||
BBB | 10 | |
0 | ||
10 |
But I need the output like this.
Desired Output | ||
PROD HIERARCHY | Sales(EMP ID1=!EMP ID2) | |
AAA | 20 | |
BBB | 20 |
Can someone please help me in achieving this.
Thanks