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

IFERROR

Hola

gracias por su apoyo a la publicación antes!
También tengo problemas con una fórmula IFERROR e IFS anidada de Excel que necesito transformar en PowerBI:

•IFERROR(IFS(AC2-"NO";" NO";(AND(AC2-"YES"; AD2-Falso))-Verdadero;" Sí"; AC8(AND(AC2-"YES"; AD2-True))-True;(IF((Y2+AA2)>(Year(Today()));" NO";" SÍ")));" N/A")

Este es mi intento:

¿Bandera atrasada? RETROFITS ?

IFERROR(IF(In Results[In Overhaul Window? RETROFITS]-"NO", "NO",
IF(AND(In Results[In Overhaul Window? RETROFITS]-"YES",Resultados[Revisión ya realizada? RETROFITS]-"Falso"),"Sí",
IF(AND(In Results[In Overhaul Window? RETROFITS]-"YES",Resultados[Revisión ya realizada? RETROFITS]-"Verdadero"),
IF(Results[Last Service Event Year]+Results[Overhaul Criteria RETROFITS]>-YEAR(TODAY()),"NO","YES"),"N/A")
¿Dónde está el error? ¿Tienes una alternativa?

9 REPLIES 9
v-easonf-msft
Community Support
Community Support

Hola , @Cybershot94

¿Podría decirme si su problema ha sido resuelto?
En caso afirmativo, podría aceptar la respuesta útil como solución. También podría compartir su propia solución aquí. Por ahora, no hay contenido de descripción en el subproceso. Si todavía necesita ayuda, por favor comparta más detalles con nosotros.

Saludos
Equipo de soporte de la comunidad _ Eason

harshnathani
Community Champion
Community Champion

hola @Cybershot94 ,

USe SWITCH()

e intentar algo como esto

Column =
SWITCH (
    TRUE (),
    Results[Overhaul Window? RETROFITS] = "NO", "NO",
    Results[Overhaul Window? RETROFITS] = "YES"
        && Results[Overhaul already performed?RETROFITS] = "False", "YES",
    Results[Overhaul Window RETROFITS] = "YES"
        && Results[Overhaul already performed RETROFITS] = "True", "YES",
    Results[Last Service Event Year] + Results[Overhaul Criteria RETROFITS]
        >= YEAR (
            TODAY ()
        ), "No",
    "YES", "N/A"
)

saludos
Harsh Nathani
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución! Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)

amitchandak
Super User
Super User

@Cybershot94 ,¿Puede compartir datos de ejemplo y salida de ejemplo en formato de tabla? O una muestra de pbix después de eliminar datos confidenciales.

Verdadero: True() //booleano , 1 entero no , "Verdadero" o "VERDADERO" como texto

Lo mismo es cierto para falsos

False() como booleano

Anonymous
Not applicable

Fehler_PowerBI_IFS_IFERROR.PNG

@Cybershot94 , In está mal. Si el nombre de la tabla es 'En resultado', debe venir en una sola cita.

Usted puede alse dar y condición como si( [A] "Sí" && [B] - "Sí" , "Sí", "No")

if(and([A] á"Yes" , [B] á "Yes" ) ,"Yes","no")

También puede utilizar el interruptor

SWITCH (
TRUE(),
[A] "Sí" && [B] - "Sí", "Sí",
[C] "Sí" && [B] - "Sí", "Sí",
"No"
)

Anonymous
Not applicable

Now I've tried to do so with SWITCH: It says that I have different data types. I tried to transfer the "0" with VALUE and FORMAT but I think I did it wrong. Which value do I have to convert and how?Ahora he intentado hacerlo con SWITCH: Dice que tengo diferentes tipos de datos. Traté de transferir el "0" con VALUE y FORMAT, pero creo que lo hice mal. ¿Qué valor tengo que convertir y cómo?

Hola @Cybershot94 ,

Vaya a Power Query y convierta la columna en Texto.

En este momento el tipo de datos de columna sería 123ABC , hacer esto al texto.

saludos

Harsh Nathani

Anonymous
Not applicable

The prior screenshot was wrong, sorry!!! this one hereLa captura de pantalla anterior estaba mal, lo siento!!! este aquí

@Cybershot94 , Si su valor booleano "True" debe True() , lo mismo ocurre con false.

Además, por fin, se valora "No" para la condición, después de ese "Sí" último valor predeterminado. "N/A" es adicional

Si usted puede dar eso como texto, fácil de averiguar

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.