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
Chris_Price
Helper I
Helper I

DAX para calcular El viaje de los estados

Hola a todos - soy nuevo en Powerbi y buscando una ayuda URGENTE por favor. Mis datos de ejemplo son los siguientes;

Workitem No.EstadoDate_Time
Sep-20 3450912Activo4/7/20 13:10
Sep-20 3450912Pendiente14/8/20 20:40:15
2309185934Pendiente6/5/2020_10:20:06
2309185934Activo20/8/2020_23:18:24
2309185934Cerrado25/8/2020_12:27:02
IUS123049512Activo5/3/2020_14:10:25
IKO093845751Cerrado15/10/2020_17:27:18
120349567Pendiente18/12/2019_19:24:48
120349567Activo26/2/2020_08:34:10
120349567Cerrado10/6/2020_20:34:18
120349567Pendiente20/7/2020_16:38:20

Necesito calcular lo siguiente usando los datos anteriores;

1) ¿Cuántos elementos de trabajo están 'cerrados' dentro de 24 horas de SLA?

2) ¿Cuántos elementos de trabajo se mueven de 'Pendiente' a 'Active' estado dentro de 24 horas?

3) ¿Cuántos elementos de trabajo se reabrieron (después del estado cerrado)?


@v-xuding-msft

@amitchandak @Greg_Deckler @Ashish_Mathur @Zubair_Muhammad

4 REPLIES 4
v-lionel-msft
Community Support
Community Support

Hola @Chris_Price ,

Consulte mi archivo .pbix.

v-lionel-msft_0-1602833102980.png

Saludos
Lionel Chen

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

@v-lionel-msft 

 

unfortunately  Q1 and Q3 are coming out weirdly like this;

86F93CFF-80BC-4AC3-B376-F1BE00639C5F.jpeg

It should show me team wise split when put in a table ?

amitchandak
Super User
Super User

@Chris_Price , Probar fórmula es como

meet SLA-countx(filter(summarize(Table,Table[Workitem No],"_1", datediff(calculate(min(Table[Date_Time]), filter(Table, Table[Status]- "Pending"))
,calculate(min(Table[Date_Time]), filter(Table, Table[Status]- "Closed")), hour)
), [_1] <-24),[No de elemento de trabajo])
movedo Active-countx(filter(summarize(Table,Table[Workitem No],"_1", datediff(calculate(min(Table[Date_Time]), filter(Table, Table[Status]- "Pending"))
,calculate(min(Table[Date_Time]), filter(Table, Table[Status]- "Active")), hora)
), [_1] <-24),[No de elemento de trabajo])
movido Open-countx(filter(summarize(Table,Table[Workitem No],"_1", datediff(calculate(Max(Table[Date_Time]), filter(Table, Table[Status]- "Closed"))
,calculate(max(Table[Date_Time]), filter(Table, Table[Status]- "Active")), hora)
), [_1] >0),[Elemento de trabajo No])

La solución propuesta no funciona @amitchandak como yo quería ser.
Por ejemplo, en la condición 1- medida aplicada todavía muestra los estados como Activo, Pendiente y Cerrado, ambos mientras que quiero ver sólo los casos que estaban cerrados dentro de 24 horas de SLA.

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.