cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
GemPOWER
Frequent Visitor

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

@GemPOWER ,

 

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)

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors