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

Necesita ayuda con la brecha de datos

Hola a todos,

Espero que todos estén seguros y bien.

Soy bastante nuevo en DAX y Power BI, tengo la siguiente tabla a continuación

La SemanaFecha de recepciónFecha de tramitaciónDateDiff
332021-08-09 00:002021-08-10 00:001
332021-08-10 00:002021-08-11 00:001
332021-08-12 00:002021-08-13 00:001
332021-08-09 00:002021-08-11 00:002
332021-08-11 00:002021-08-13 00:002
332021-08-10 00:002021-08-13 00:003
332021-08-13 00:002021-08-16 00:003
332021-08-09 00:002021-08-13 00:004

La columna DataDiff es la brecha entre la fecha de recepción y la fecha de procesamiento. Lo que quiero hacer es agrupar los DiffGap que son 1-2, 3-4 y 5+ y mostrar en un gráfico de barras donde el eje X es la semana y las barras son 1-2, 3-4 y 5+.
Así que en este ejemplo tendríamos para la semana 33 el rango 1-2 con conteo de 5 y para el rango 3-4 con el conteo de 3.

Gracias de antemano,

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@Ikezaki Puede hacer esto:

Group Column =
  SWITCH(TRUE(),
    [dateDateDiff] < 3,"1-2",
    [dateDateDiff] < 5,"3-4",
    "5+"
  )

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@Ikezaki Puede hacer esto:

Group Column =
  SWITCH(TRUE(),
    [dateDateDiff] < 3,"1-2",
    [dateDateDiff] < 5,"3-4",
    "5+"
  )

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.