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
system243trd
Helper I
Helper I

DAX DATEADD Problema contagioso

Estoy intentando crear una fórmula de adición de fecha para el valor datetime en Power BI. Power BI está vinculado al servicio de análisis. Mi medida es DateAdd('Table1'[DateField],1,MONTH) Recibo el error de inicio La medida de informe tiene una sintaxis o un error semántico en la línea 1, postión 2, notificado por Analysis Sercices 'Function DATEADD' espera una selección contagiosa cuando las columnas de fecha no son únicas, tienen huecos o contienen una parte de tiempo. ¿Alguien puede ayudar?

3 REPLIES 3
amitchandak
Super User
Super User

@system243trd , sí Dateadd necesita una fecha continua. así que si usted no tiene los que obtendrá error

Trate así de usar la fecha como fecha de añadir

date(year('Table1'[DateField]),month('Table1'[DateField])-1,day('Table1'[DateField]))

Gracias. Si aún así sigues teniendo problemas, visita la página de ayuda de Distancia.

@system243trd , Vea si esto puede ayudar

https://www.dropbox.com/s/bi2guw0x9awzvm2/DateAsDate%20Add.pbix?dl=0

¿Puede compartir datos de ejemplo y salida de ejemplo en un formato de tabla? O una muestra de pbix después de eliminar datos confidenciales.

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.