Microstrategy Metric. Help!! Microstrategy Metric. Help!! Guest (visitor) (OP) 24 Sep 02 05:53 I'm sorry because I'm Spanish, and I write very bad EnglishThis is my problem:I need create a new metric as:if atribute.id equals 'DB' (string) then my metric = Fact saldo * (-1)else metric = Fact Saldoend ifMay you help me?? RE: Microstrategy Metric. Help!! nlim (IS/IT--Management) 24 Sep 02 14:34 you need to use the case functions: check out these technotesTN5200-071-0120 - How to create metrics with 'CASE' expressions in MicroStrategy SQL Generation Engine 7.1 \\TN5300-7X0-0259 - Case and CaseV functions in the MicroStrategy 7 Analytical Engine RE: Microstrategy Metric. Help!! Guest (visitor) (OP) 25 Sep 02 07:28 Thank you.I think it runs OK now.I maked a new fact with both fields using the Case and ApplySimple functions:This is my fact:ApplySimple("CASE WHEN #0 in ('DB') THEN ((-1)*#1)WHEN #0 in ('HB') THEN #1 ELSE #1 END"; [field_atribute ]; field_SALDO)And then I make the metric with it.Thank you again.