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
adityavighne
Continued Contributor
Continued Contributor

semana comienza el miércoles

Hola equipo,

Estoy buscando weeknum debería comenzar el miércoles - martes

WeekNUM no tiene opciones. así que cómo hacer esto.

saludos

Aditya

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@adityavighne, por favor encuentre el calendario que comienza desde cualquier día de la semana

https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...

Cómo obtener una semana de año personalizada

Año de inicio : STARTOFYEAR('Date'[Date],"3/31") // Dar la fecha de finalización correcta del año
WeekDay - WEEKDAY([Date],2) //monday, Use Wed code from link
Inicio de la semana -[Fecha] -[WeekDay]+1 //monday , Usar código de mie desde el enlace
Año fiscal á año('Fecha'[Año de inicio]) // usar fin de año
Semana de la EY á QUOTIENT(DATEDIFF(Minx(FILTER('Date',[FY Year]-EARLIER([FY Year])),'Date'[Start of Week]),[Date],DAY),7)+1

View solution in original post

5 REPLIES 5
harshnathani
Community Champion
Community Champion

HOLA @adityavighne ,

Puedes echar un vistazo a este blog.

https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...

saludos
Harsh Nathani
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución! Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)

FarhanAhmed
Community Champion
Community Champion

Hola @adityavighne

Una forma de hacerlo cambia la configuración regional de tu Windows para comenzar la semana a partir del miércoles

- Ir a la configuración regional en Windows

WeekStart-Wednesday.png

- Cambiar el primer día de la semana a"Miércoles"

WeekStart-Wednesday-2.png

- Utilice el formato en lugar de WeekNum para obtener el WeekNumber

WeekNum = FORMAT('Date'[Date],"WW")

- Obtendrá el WeekNumber a partir de "Miércoles"

WeekStart-Wednesday-3.png







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




amitchandak
Super User
Super User

@adityavighne, por favor encuentre el calendario que comienza desde cualquier día de la semana

https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...

Cómo obtener una semana de año personalizada

Año de inicio : STARTOFYEAR('Date'[Date],"3/31") // Dar la fecha de finalización correcta del año
WeekDay - WEEKDAY([Date],2) //monday, Use Wed code from link
Inicio de la semana -[Fecha] -[WeekDay]+1 //monday , Usar código de mie desde el enlace
Año fiscal á año('Fecha'[Año de inicio]) // usar fin de año
Semana de la EY á QUOTIENT(DATEDIFF(Minx(FILTER('Date',[FY Year]-EARLIER([FY Year])),'Date'[Start of Week]),[Date],DAY),7)+1

@amitchandak

muy bien escrito blog.

Gracias por la solución.

pranit828
Community Champion
Community Champion

Hola @adityavighne

Yo usaría la siguiente función

WEEKDAY([date],13)





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

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.

Top Kudoed Authors