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
yugofukuda
Helper IV
Helper IV

Conteo de días laborables

Hola

Me gustaría poner el número de días de trabajo como abajo, pero no sé cómo hacer eso.

Por ejemplo, en el caso de la sep de 2019, sólo hubo 18 días laborables, pero me gustaría poner 22 en la última jornada laboral. (otros meses también). Me agradecería que me ayudaras.

¡¡Gracias!!

Sample10.png

2 ACCEPTED SOLUTIONS

Aquí está la versión SUMX de la misma para sumar los valores en la columna IsWorkingDay.

WD 22 b ?
VAR thisdate á 'Fecha'[Fecha]
VAR este mes ' 'Fecha'[Mes]
VAR este año ' 'Fecha'[Año]
VAR wdafterthisdate ?
SUMX (
FILTRO (
'Fecha',
'Fecha'[Fecha] > thisdate
&& NOT ( WEEKDAY ( 'Fecha'[Fecha] ) EN S. 1, 7 ? )
&& 'Fecha'[Mes] - este mes
&& 'Fecha'[Año] - este año
),
'Date'[IsWorkingDay]
)
devolución
IF ( 'Date'[IsWorkingDay] á 1, 22 - wdafterthisdate )

Si esto funciona para usted, márquelo como la solución. Los elogios también son apreciados. Por favor, avísame si no.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

Vi eso y agregué el IF para abordarlo. Simplemente retírelo y use esto como la devolución

devolución
22 - wdafterthisdate

Si esto funciona para usted, márquelo como la solución. Los elogios también son apreciados. Por favor, avísame si no.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

19 REPLIES 19

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.