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
Anonymous
Not applicable

El parámetro no es el tipo correcto con la función Ealier

Hola a todos, Im currenty quiere contar datediff entre la fecha actual con las filas anteriores como abajo. Pero cuando utilizo este código, dijo que el parámetro no es el tipo correcto y tampoco puede encontrar el nombre [WorkpieceID]

¿Hay alguien que pueda ayudarme, por favor. Gracias1.png2.png

2 REPLIES 2
v-xicai
Community Support
Community Support

Hola @conghoanguyen29 ,

Puede cambiar la fórmula como DAX a continuación.

Inactivo

VAR _PreDate- CALCULATE(MAX('Performance Analyse' [Station_End_Date]), FILTER('Performance Analyse', 'Performance Analyse'[WorkpieceID]- MAX('Análisis de rendimiento'[WorkpieceID]) &&'Análisis de rendimiento'[Station_Start_Date] <MAX('Análisis de rendimiento'[Station_Start_Date])))

VAR diff- DATADIFF(_PreDate, MAX('Análisis de rendimiento'[Station_Start_Date]), SEGUNDO)

devolución

diff/3600

Saludos

Amy

Equipo de apoyo a la comunidad _ Amy

Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

amitchandak
Super User
Super User

@conghoanguyen29 , es una columna o Medida.

Si es una medida utilice Max en lugar de antes y trate de

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