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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
GemPOWER
Frequent Visitor

VAR HELP

Hola,
necesito crear tres variables (p2a,p2b y p5), 
¿ cómo podría poner está super fórmula de manera correcta ? Gracias

 

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] <12 month=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(varP2a+VarP2b+P5)

1 REPLY 1
AlB
Super User
Super User

Hi @GemPOWER 

Assuming the definition of the variables is correct as shown, you can do something like:

measure = 
VAR P2a = Definition as you have it   
VAR P2b = Definition as you have it
VAR P5 = Definition as you have it
RETURN
P2a + P2b + P5

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut

 

 

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors