eo
MIS
- Apr 3, 2003
- 809
Hi,
I have MDX which calculates a "Loss Ratio". But the divider is often null, in fact, all three components could be null, which then deliveres a "-1.#IND" result. I would prefer a NULL result rather. Can someone show me how to amed the MDX using either CASE or IIF (or anything else more appropriate) to do this?
EO
Hertfordshire, England
I have MDX which calculates a "Loss Ratio". But the divider is often null, in fact, all three components could be null, which then deliveres a "-1.#IND" result. I would prefer a NULL result rather. Can someone show me how to amed the MDX using either CASE or IIF (or anything else more appropriate) to do this?
Code:
CREATE MEMBER CURRENTCUBE.[MEASURES].[ClmGrsIncLR%]
AS 100*([Measures].[ClmGrsIncIndem]+[Measures].[ClmGrsIncFee])/[Measures].[PrmGGAcc],
FORMAT_STRING = "0.0",
VISIBLE = 1;
EO
Hertfordshire, England