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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Syndicate_Admin
Administrator
Administrator

Fórmula para la condición ifs anidada

Hola

Le gustaría buscar su ayuda en lo siguiente.

si Prioridad = 2 horas, entonces Pase, si no 2 horas, entonces falló,

si Prioridad = 4 horas, entonces Pase, si no 4 horas, entonces falló

Muchas gracias por sus respuestas. Que dios te bendiga

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

¿Qué tal si la prioridad y la duración están en una mesa diferente?

Syndicate_Admin
Administrator
Administrator

eso funcionó. Muchas gracias. 🙂

Syndicate_Admin
Administrator
Administrator

¡Hola!

Prueba algo como esto:

SWITCH(
	SELECTEDVALUE( Priority ),
	"2 hours", "Pass",
	"4 hours", "Pass",
	"failed"
)

Si tu columna de prioridad es numérica, no uses comillas dobles.

¡Hágame saber si eso ayuda!

Hola, en bo la fórmula debe ser:

if (priority = p1, then (if duration <= 2, "pass", "fail") elseif (priority=p2, then (if duration >=4, "pass", "fail")

else "null"

Prueba esto:

IF (
    priority = "p1",
    IF (
        duration <= 2,
        "Pass",
        "Fail"
    ),
    IF (
        priority = "p2",
        IF (
            duration <= 4,
            "Pass",
            "Fail"
        ),
        BLANK ()
    )
)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors
Top Kudoed Authors