cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Alejandro-Glez
Helper III
Helper III

Días del Año en número

Buenas tardes a todos,

 

Estoy tratando de poner en mi tabla calendario el número de día del año pero no consigo lograrlo. Mi idea es crear una columna que establezca que, por ejemplo, el 1 de enero sea el día 1 o el 31 de Diciembre sea el 365/366.

 

Gracias y saludos!

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Alejandro-Glez

Agregue esto como una nueva columna en su tabla de calendario, supongo que tiene un campo de fecha llamado [Fecha]

Days in the Year = 
DATEDIFF( DATE(YEAR([Date]),1,1),[Date],DAY)+1

Fowmy_0-1602590915572.png

________________________

Si mi respuesta fue útil, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Alejandro-Glez

Agregue esto como una nueva columna en su tabla de calendario, supongo que tiene un campo de fecha llamado [Fecha]

Days in the Year = 
DATEDIFF( DATE(YEAR([Date]),1,1),[Date],DAY)+1

Fowmy_0-1602590915572.png

________________________

Si mi respuesta fue útil, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Oye, @Fowmy la solución anterior es genial, pero ¿qué pasaría si quisieras que el número del día continuara?

Entonces, ¿fue 366 por no volver a 1 cuando comenzó el nuevo año?

Me encantaría un total de mis números diarios del lapso,

Gracias por la ayuda

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors