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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Múltiples instrucciones if en una columna calc

Hola a todos

Estoy tratando de ejecutar una instrucción múltiple if en una columna calc pero no funcionó,

Así que estoy tring para implementar una instrucción switch pero niether wont trabajo.

SupplierHecPollNL á IF(Tanques[Tierra]"Países Bajos" && Tankingen[Proveedor]-"HecPoll" ;" Papendrecht_HecPoll"; Repostaje[Proveedor]);
(IF(Refuellings[Land] - "Países Bajos" && Tankingen[Proveedor] - "HecPoll"; "Papendrecht_HecPoll"; Reabastecimiento de combustible[Proveedor])
¿Puede alguien ayudar, por favor?
saludos
Ezz

3 REPLIES 3
amitchandak
Super User
Super User

@Ezz , usted primero si

IF(Refuellings[Land]"Países Bajos" && Tankings[Proveedor]-"HecPoll" ;" Papendrecht_HecPoll"; Reabastecimiento de combustible[Proveedor])

Los HAs terminaron aquí. después de eso es sólo repetir.

Si necesita bucle si

IF(Refuellings[Land]"Países Bajos" && Tankings[Proveedor]-"HecPoll" ;<Si está aquí>;<Si está aquí>)

O utilice Switch True

Switch(True(),

<condición>, <acción>,

<condición>, <acción>,

<condición>, <acción>,

<otra acción>

)

nandukrishnavs
Super User
Super User

@Ezz

Prueba esto

SupplierHecPollNL =
IF (
    Tankingen[Land] = "Netherlands"
        && Tankingen[Leverancier] = "HecPoll";
    "Papendrecht_HecPoll";
    IF (
        Tankingen[Land] = "Netherlands"
            && Tankingen[Leverancier] = "Replace with another value";
        "Papendrecht_Replace with another value";
        Tankingen[Leverancier]
    )
)



¿Respondí a tu pregunta? ¡Marca mi puesto como solución!
Apreciar con un kudos
🙂


Regards,
Nandu Krishna

az38
Community Champion
Community Champion

Hola @Ezz

usted dio completamente la misma frase escrita dos veces.

utilizar sólo este

SupplierHecPollNL =  IF(Tankingen[Land]="Netherlands" && Tankingen[Leverancier]="HecPoll" ;"Papendrecht_HecPoll";Tankingen[Leverancier])

o utilizar SWITCH()

SupplierHecPollNL =  
SWITCH(TRUE();
Tankingen[Land]="Netherlands" && Tankingen[Leverancier]="HecPoll" ; "Papendrecht_HecPoll";
Tankingen[Land]="Other" && Tankingen[Leverancier]="Other" ; "Otehr Value";
Tankingen[Leverancier]
)


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.