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
ManEff
Frequent Visitor

Función DATEADD (DAX) - no mostrar los cálculos del año 2000

Hola - Me preguntaba si alguien había experimentado un problema con la función DATEADD y los cálculos NO muestran el año 2000. Mi nuevo cálculo de columna parece funcionar (usando la siguiente fórmula para agregar 5 años a una fecha de inicio):

A mitad de camino: DATEADD(Planes[Fecha de inicio],+5,año)

pero como se puede ver en la tabla debajo del cálculo sólo parece funcionar para las fechas calculadas resultantes antes del año 2000.

ManEff_0-1605499061667.png

Espero que tenga sentido. Cualquier experiencia/asistencia para resolver esto sería apreciado. Gracias, Tom.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ManEff , DATEADD necesita fechas continuas. por lo que si la fecha no está allí en la tabla de tabla/calendario no mostrará datos. Puede utilizar la fecha como dateadd, si es necesario

date(year(Plans[Start Date])+5,month(Plans[Start Date]), day(Plans[Start Date]))

https://www.youtube.com/watch?v=YWo-ZpKM6gU

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@ManEff , DATEADD necesita fechas continuas. por lo que si la fecha no está allí en la tabla de tabla/calendario no mostrará datos. Puede utilizar la fecha como dateadd, si es necesario

date(year(Plans[Start Date])+5,month(Plans[Start Date]), day(Plans[Start Date]))

https://www.youtube.com/watch?v=YWo-ZpKM6gU

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 Solution Authors