Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

IF HELP

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])

)

 

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

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.

Anonymous
Not applicable

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)

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.