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.
Queridos todos,
Me gustaría hacer una pregunta, cómo usar Lead LAG en la medida DAX en PowerBI como SQL Server
Fuentes:
DESDE LA FECHA |
3/31/2019 |
4/1/2019 |
4/2/2019 |
4/23/2019 |
Deseo de destino
DESDE LA FECHA | Hasta la fecha |
3/31/2019 | Null |
4/1/2019 | 3/31/2019 |
4/2/2019 | 4/1/2019 |
4/23/2019 | 4/2/2019 |
Null | 4/23/2019 |
Muchas gracias.
Solved! Go to Solution.
@ptkhoa2110 , No hay plomo , retraso en power BI, Puede obtener la salida de esa manera
Pero la última fila es difícil de conseguir
ejemplo de medida
Last Day Non Continuous ? CALCULATE(Max(Table[date]),filter(ALLSELECTED('Date'),'Date'[Date] ?MAXX(FILTER(ALLSELECTED('Date'),'Date'[Date]<max('Date'[Date])),'Date'[Date])))
con la tabla de fechas unida con la fecha que tiene
@ptkhoa2110 , No hay plomo , retraso en power BI, Puede obtener la salida de esa manera
Pero la última fila es difícil de conseguir
ejemplo de medida
Last Day Non Continuous ? CALCULATE(Max(Table[date]),filter(ALLSELECTED('Date'),'Date'[Date] ?MAXX(FILTER(ALLSELECTED('Date'),'Date'[Date]<max('Date'[Date])),'Date'[Date])))
con la tabla de fechas unida con la fecha que tiene
Que correcto para mí, quiero calcular entre 2 fechas en 2 filas.
Sí, muchas gracias.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |