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
Syndicate_Admin
Administrator
Administrator

Ayuda con este problema

Es un tema muy simple, pero no puedo encontrar la solución, necesito establecer los días entre 2 fechas, probar "Datediff", pero pide las fechas, pero cuando escribo el campo, el programa no lo toma:

miguelHG_2-1610656291689.png

También traté de crear una medida en otra tabla que extraiga la fecha que necesito, pero no pude, ¿puede alguien ayudarme? Gracias

miguelHG_1-1610656256098.png

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Hola @miguelHG

¿Está seguro de que los campos son campos Date o DateTime? Usé esta fórmula para probar y funciona bien:
CalculatedColumn:

Datediff = DATEDIFF('Table'[DocDate],'Table'[DocDueDate],DAY)

Y para una medida:

DateDiffMeasure = DATEDIFF(SELECTEDVALUE('Table'[DocDate]),SELECTEDVALUE('Table'[DocDueDate]),DAY)


Resultado:

Screenshot_21.png

Eric.

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Hola @miguelHG

¿Está seguro de que los campos son campos Date o DateTime? Usé esta fórmula para probar y funciona bien:
CalculatedColumn:

Datediff = DATEDIFF('Table'[DocDate],'Table'[DocDueDate],DAY)

Y para una medida:

DateDiffMeasure = DATEDIFF(SELECTEDVALUE('Table'[DocDate]),SELECTEDVALUE('Table'[DocDueDate]),DAY)


Resultado:

Screenshot_21.png

Eric.

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.