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.
Necesito calcular la fecha del día hábil que sucedió en el pasado. Por ejemplo, quiero calcular la fecha que sucedió hace 3 días hábiles. No me preocupan los días festivos, solo la fecha de lunes a viernes.
En Excel, esto sería =WORKDAY(Today(), -3)
¿Cómo controlo eso en Power BI?
Solved! Go to Solution.
@songmaster0868 Tal vez esto: Net Work Days - Microsoft Power BI Community o inferior.
3 Working Days Ago =
VAR __Today = TODAY()
VAR __Calendar =
ADDCOLUMNS(
CALENDAR(__Today - 5, __Today),
"__WeekDay",WEEKDAY([Date],2)
)
VAR __Filtered = FILTER(__Calendar,[__WeekDay]<6)
RETURN
IF(COUNTROWS(__Filtered) <> COUNTROWS(__Calendar),MINX(__Filtered,[Date]),TODAY()-3)
@songmaster0868 Tal vez esto: Net Work Days - Microsoft Power BI Community o inferior.
3 Working Days Ago =
VAR __Today = TODAY()
VAR __Calendar =
ADDCOLUMNS(
CALENDAR(__Today - 5, __Today),
"__WeekDay",WEEKDAY([Date],2)
)
VAR __Filtered = FILTER(__Calendar,[__WeekDay]<6)
RETURN
IF(COUNTROWS(__Filtered) <> COUNTROWS(__Calendar),MINX(__Filtered,[Date]),TODAY()-3)
Quiero retroceder 45 días de la misma manera, pero no pude encontrar dónde cometí un error en la fórmula dax que escribiste, ¿cómo restarías 45 días hábiles?
Estaría muy feliz si responde.
Atentamente.
Hi, @songmaster0868
1. Cree una columna calculada en su tabla de calendario:
¿Respondí a su pregunta? Por favor, haga clic en Me gusta y marque mi publicación como una solución si resuelve su problema. Gracias.
Aprecia tus felicitaciones !!!
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/
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 |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |