We have a requirement to show data in the below format . we need to add a new calculation in bex query wherein we can achieve the no of STI plan for an employee and then show only those records where count of Plan is greater than 1 . we are able to retrieve the data thru Bex in the format shown below by using a calculated keyfigure and exception aggregation(counter for all detailed values that are not equal to zero)
CKF1 has a calculated keyfigure. And in calculated key figure we have put Plan which is a formula variable with replacement path by replacing infoobject with attribute.
Formula 2 displays 1 if CKF1 > 1 else it shows 0.
Employee | Plan | CKF1 | Formula 2 |
1001 | S1 | 1 | 0 |
1001 | S2 | 1 | 0 |
1002 | S1 | 1 | 0 |
1002 | S2 | 1 | 0 |
1002 | S3 | 1 | 0 |
1003 | S1 | 1 | 0 |
1004 | S1 | 1 | 0 |
1004 | S2 | 1 | 0 |
1005 | S1 | 1 | 0 |
But this is shown correctly only when we remove Plan from rows but in reqt we need to show only those employees and plans where number of plans for emp is greater than 1.
Expected output is as follows:
Employee | Plan |
1001 | S1 |
1001 | S2 |
1002 | S1 |
1002 | S2 |
1002 | S3 |
1004 | S1 |
1004 | S2 |
Can you pls help on this?
Thanks,
Tanvi