I have a parameter for Net Profit target so if i enter 0.10 it =10% my report looks at products that Does not meet the specified target and the last column suggests the minimum retail selling price the product would need to meet the target
to get net profit i use
(NetRtl-Cost)/NULLIF(GrsRtl,0) as NP
say the result was 0.04 = 4%
i need the minimum NetRtl to make my NP = 10%
but when i do @NPTARGET + COST * GRSRTL this doesnt work
(NetRtl-Cost)/NULLIF(GrsRtl,0), when GrsRtl is in fact NULL, you are dividing by 0. That is a mathematical no-no and will also error. - TTeeple