Forum Discussion

GuilleLus's avatar
GuilleLus
Frequent Visitor
2 years ago

Calculate column error

Hi!

I created a measure and it doesn't work completely. Can you help me solve it?

I copy the measure below the image.

  • COLUMN "% Cob. Cuota 1" < 60% (does not apply INCENTIVO)

Thanks for your help.

Best regards, Guillermo.-

 
Incentivo =
VAR _ObjetivoVentas =
RELATED(Tabla_Agentes[Objetivo_Venta_1])
VAR _ObjetivoCobranza =
RELATED(Tabla_Agentes[Objetivo_%_Cobranza])
VAR _PorcCobCta1 =
DIVIDE('L 1613'[PorCobCuo1], _ObjetivoCobranza)
VAR _PorcVenta =
DIVIDE(Totales[Total Vendidas], _ObjetivoVentas)
RETURN
IF(
_PorcCobCta1 >= 1
&& _PorcVenta >= 1,
IF(
_PorcCobCta1 >= 1
&&_PorcVenta >= 1.2
,
RELATED(Tabla_DIM_Incentivos[Incentivo_2]),
RELATED(Tabla_DIM_Incentivos[Incentivo_1])
)
)
 

2 Replies