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
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
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