Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hola,
tengo esta columna calculada con IF & Lookvalue y tengo que meter temporalidad en el campo
[Duracion_del_Contrato_base__c] >12 meses y <24meses.
IF(or(Oportunidad[Producto/Prestacion Presupuesto]="Instalaciones";or(Oportunidad[Producto/Prestacion Presupuesto]="Adicional contrato instalaciones P5A";(Oportunidad[Producto/Prestacion Presupuesto]="Servicios de Ingeniería")));
LOOKUPVALUE(Presupuesto[PVP__c]; Presupuesto[Id];Oportunidad[SyncedQuoteId]);
tengo que meter esta condición la variable Duracion_del_Contrato_base__c >12meses y <24meses ,NULL)
if( LOOKUPVALUE(Presupuesto[Duracion_del_Contrato_base__c]; Presupuesto[Id];Oportunidad[SyncedQuoteId])>11;
LOOKUPVALUE(Presupuesto[PVP_Anual__c]; Presupuesto[Id];Oportunidad[SyncedQuoteId])
; LOOKUPVALUE(Presupuesto[PVP_Total_Anios__c]; Presupuesto[Id];Oportunidad[SyncedQuoteId])
)
Modfiy the code like pattern below:
Result =
VAR variable = ( [Duracion_del_Contrato_base__c] > 12
|| y < 24 )
RETURN
IF (
Oportunidad[Producto/Prestacion Presupuesto] = "Instalaciones"
|| ( Oportunidad[Producto/Prestacion Presupuesto] = "Adicional contrato instalaciones P5A"
|| Oportunidad[Producto/Prestacion Presupuesto] = "Servicios de Ingeniería" ),
condition1,
condition2
)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yo necesito crear tres variables:
Var P2a= IF(Oportunidad[Fecha_Adjudicacion__c]=YEAR(NOW()-1;
SI Oportunidad[Duracion_Contrato_Base_meses__c]>12<24month = (Presupuesto[PVP_Anual__c]-Presupuesto[PVP_Total_Anios__c]
SI Oportunidad[Duracion_Contrato_Base_meses__c] disinto>12<24month=0)
Var P2b= IF(Oportunidad[Fecha_Adjudicacion__c]=YEAR(NOW();
Si Presupuesto[Duracion_del_Contrato_base__c] < 12 meses dame Presupuesto[PVP_Total_Anios__c]
Si Presupuesto[Duracion_del_Contrato_base__c] >12 meses dame Presupuesto[PVP_Anual__c]
Var P5= IF(Oportunidad[Fecha_Adjudicacion__c]=YEAR(NOW() dame el (Presupuesto[PVP_Total_Anios__c];0)
Return; sum(P2a;P2B;P5)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 121 | |
| 103 | |
| 46 | |
| 30 | |
| 24 |