I have one measure with sum agg rule on it. But there is one specific condition. I should show the sum when one condition is met and 0 otherwise.
I have dimension Product and Table Product (prod_code2 varchar2(2), prod2_name varchar2(100), prod2_status number, prod_code4 varchar2(4), prod4_name varchar(100), prod4_status number, prod_code6 varchar2(6), prod_name6 varchar2(100), prod6_status number)
Total
-01(status=0)
-0101(status=0)
-010101(status=0)
-010102(status=1)
-0102(status=1)
-010201(status=1)
-010202(status=1)
......
When user doesn’t choose any member from product dim I have to show 0 as value for that measure.
When user choose member(code or name) for which the status=0 I should also show 0.
But when the status for the chosen member is 1 i should calculate the sum.
Is there any way to write such rule for that measure?