cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

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

eso funcionó. Muchas gracias. 🙂

¡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 ()
)
)``````

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

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

#### Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

#### Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors