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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Por favor, corríjame la condición IF

Hola miembros, Por favor, hágamelo saber es mi siguiente CONDIción IF es correcta / incorrecta. Estoy encontrando Totalminute entre el tiempo de detección de problemas y el inicio del incidente que se genera por el nombre XYZ

si [XYZ activado] a 1 ?
si .
[-" Tiempo de detección (UTC)"] < [-"Inicio de incidente (UTC)"] a continuación,
Duration.TotalMinutes([-"Tiempo de detección (UTC)"] - [-"Inicio de incidente (UTC)"])
Más
Duration.TotalMinutes([-"Inicio de incidente (UTC)"] - [-"Tiempo de detección (UTC)"])-
}
Más
"nulo"
}

4 REPLIES 4
amitchandak
Super User
Super User

@gshastri , Trate de soething como este

if [Triggered XYZ] = 1 then
 if [#" Detection Time (UTC)"] < [#"Incident Start (UTC)"] then
 Duration.TotalMinutes([#"Detection Time (UTC)"] - [#"Incident Start (UTC)"])
 else
 Duration.TotalMinutes([#"Incident Start (UTC)"] - [#"Detection Time (UTC)"])
else
 "null"

AllisonKennedy
Super User
Super User

También hay un botón en la cinta de opciones de Power Query para calcular la duración o el total de minutos si selecciona las columnas Tiempo de detección e Inicio de incidentes y, a continuación, busque en la pestaña Agregar columna de la derecha. Pueden ayudarte con un comienzo, pero no estoy seguro de dónde viene la parte IF en función de tu pregunta.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

Activado por --- está teniendo un equipo diferente - Quiero encontrar que sólo el equipo XYZ es activado por en lugar de otro equipo.

y cuando hice Tiempo de detección - Inicio de incidente algunas veces el valor del tiempo de detección es más que el inicio del incidente. que tiempo obtengo valor negativo.

AllisonKennedy
Super User
Super User

Esto parece algo que es posible que desee publicar en el foro de Power Query: https://community.powerbi.com/t5/Power-Query/bd-p/power-bi-services

¿Qué intentas encontrar? Por favor, explique sus criterios un poco más en 'inglés simple' para que podamos ayudar a solucionar su declaración IF, y también describa su problema. Probablemente necesites un 'para cada uno' que parece estar desaparecido.

¿Intentó comenzar con la pestaña Agregar columna simple en la cinta de opciones y hacer clic en el botón "Columna condicional"? Esto le dará los huesos / estructura para comenzar su fórmula.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors