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.
Buenas tardes para todos
Quisiera saber si alguien conoce como cambiar una fecha que se encuentra en un dia no habil, como sabado, domingo o festivo al proximo dia habil, ejemplo:
el 3/12/2022 es un sabado, deseo transformarla al lunes 5/12/2022 que es dia habil
el 15/10/2022 es un sabado, deseo trasnformarla al siguiente dia habil, es decir, martes 18/10/2022 y asi con cada fecha que se encuentre en un dia no habil para que pase a un dia habil
El dia viernes 5/08/2022 al siguiente dia habil lunes 8/08/2022
13/08/2022 al siguiente dia habil martes 16/08/2022
viernes 12/08/2022 al siguiente dia habil que es martes 16/08/2022
Y asi con cualquier fecha que presente esta observación
Quedo atenta si alguien conozca la manera de hacer dicho cambio
Solved! Go to Solution.
Hi @Anonymous ,
Please try:
Measure =
VAR _a =
CALCULATE (
MIN ( 'Date'[Date] ),
FILTER (
ALL ( 'Date' ),
[Date] > MAX ( 'Date'[Date] )
&& WEEKDAY ( 'Date'[Date], 2 ) < 6
)
)
RETURN
IF ( WEEKDAY ( MAX ( 'Date'[Date] ), 2 ) > 5, _a, MAX ( 'Date'[Date] ) )
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try:
Measure =
VAR _a =
CALCULATE (
MIN ( 'Date'[Date] ),
FILTER (
ALL ( 'Date' ),
[Date] > MAX ( 'Date'[Date] )
&& WEEKDAY ( 'Date'[Date], 2 ) < 6
)
)
RETURN
IF ( WEEKDAY ( MAX ( 'Date'[Date] ), 2 ) > 5, _a, MAX ( 'Date'[Date] ) )
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Check if this can help
Power BI- Show Weekend data on Monday or Friday: https://youtu.be/ha71XAfntkQ
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 |
---|---|
110 | |
94 | |
80 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |