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

Cómo obtener días de networking

Estoy tratando de calcular el defecto cambiar el tiempo es decir, fecha de creación - fecha resuelta y tengo que considerar sólo los días de red.

Puede ver la opción en Excel, pero no se puede averiguar en BI. Solicite ayuda. Tengo el pbix en la ubicación de abajo.

https://drive.google.com/file/d/1cUAs6a8plrgNYjYrwVTr5D0rT7V9fVyW/view?usp=sharing

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hola @bunny18 ,

Cree una relación entre la tabla "Tabla de fechas" y la tabla "Defecto TAT" y, a continuación, cree una columna de día de la semana en la tabla "Tabla de fechas".

weekday = WEEKDAY('Date Table'[Date],2)

TAT_NETWORKING = 
CALCULATE(
    COUNTROWS ( 'Date Table'),
    DATESBETWEEN ( 'Date Table'[Date].[Date],  'Defect TAT'[Created Date], 'Defect TAT'[Resolved month]-1 ),
    'Date Table'[weekday] >= 1&&'Date Table'[weekday]<=5,
    ALL ( 'Defect TAT' )
)+0

How to get networking days.PNG

V-lianl-msft_0-1603967552568.png

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

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hola @bunny18 ,

Cree una relación entre la tabla "Tabla de fechas" y la tabla "Defecto TAT" y, a continuación, cree una columna de día de la semana en la tabla "Tabla de fechas".

weekday = WEEKDAY('Date Table'[Date],2)

TAT_NETWORKING = 
CALCULATE(
    COUNTROWS ( 'Date Table'),
    DATESBETWEEN ( 'Date Table'[Date].[Date],  'Defect TAT'[Created Date], 'Defect TAT'[Resolved month]-1 ),
    'Date Table'[weekday] >= 1&&'Date Table'[weekday]<=5,
    ALL ( 'Defect TAT' )
)+0

How to get networking days.PNG

V-lianl-msft_0-1603967552568.png

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

amitchandak
Super User
Super User

@bunny18 , En la comprobación de archivos adjuntos - Diff día laborable

también comprobar

https://www.sqlbi.com/articles/counting-working-days-in-dax/

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.