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.
Hola
Me gustaría poner el número de días laborables en cada mes como esta imagen (considerando vacaciones) pero no sé cómo hacer eso...
Me agradecería si pudieras ayudarme!! Gracias.
Solved! Go to Solution.
Por favor, pruebe esta expresión
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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
@yugofukuda , Probar como
sumx(filter(Calendar, [month]-earlier[Month] && [isworkingday]-earlier([isworkingday]) && [isworkingday]-1 && [Date] <-earlier([Date])),[isworkingday]] )
@amitchandak @AllisonKennedy
Muchas gracias por su ayuda!!
Pero no funcionó. ¿Qué debo hacer?
si es necesario, no me importa si se elimina la columna de "isWorkingday" (no es necesario).
Por favor, pruebe esta expresión
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
¡¡¡Muchas gracias!!! pero no funcionó.
El mensaje en Power BI es "Se detectó una dependencia circular: Calendar[IsWorkingDay], Calendar[WorkingDayNumber], Calendar[IsWorkingDay]".
Eso es raro. Trabajé en mi mesa de calendario. ¿Cuál es la expresión utilizada en la columna IsWorkingDay? La mía es
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@mahoneypat
Muchas gracias por su rápida respuesta.
El mío es "IsWorkingDay" (NO('Calendar'[nombreDeYe]- "Sábado" ('Calendario'[nombrede día]- "Domingo")) && COUNTX(RELATEDTABLE('Holidays'),1)<1,1,0)"Cuando probé su expresión, funcionó bien, pero me gustaría considerar las vacaciones. tabla de vacaciones es como abajo.
Por favor, pruebe este en su lugar que evita el CALCULATE. Reemplace 'Fecha' por 'Calendario' en todo.
WorkingDayNumber =
VAR thisdate = 'Date'[Date]
VAR thismonth = 'Date'[YearMonthnumber]
RETURN
IF (
'Date'[IsWorkingDay] = 1,
COUNTX (
FILTER (
'Date',
'Date'[Date] <= thisdate
&& 'Date'[YearMonthnumber] = thismonth
&& 'Date'[IsWorkingDay] = 1
),
1
)
)
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
mahoneypat
Hola, hice una columna para las vacaciones y funcionó bien usando su expresión. ¡¡Muchas gracias!!
@mahoneypat
Muchas gracias, pero no funcionó bien...
Supongo que mi expresión en iswokingday (considerando vacaciones) no es buena. en su caso, funciona bien??
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |