Conditional Statement in the Cube View Columns
Hey All,
We got a recent requirement of implementing a conditional statement inside the cube view columns. The user wants to calculate a certain column on the basis of the value of another column. The design is explained below:
If B <> 0 then
D= B+C
else if B = 0 then
D= A+C
| A | B | C | D |
| 10 | 100 | 20 | 120 (100+20) |
| 20 | 0 | 130 | 150 (20+130) |
| 0 | 20 | 30 | 50 (20+30) |
I'm currently facing difficulty to implement this solution inside the cube view. My first shot was trying something in the XFBR string but that I couldn't get around the logic to implement the same.
Any leads will be appreciated.
Thanks!
Pragyanshu Bansal

