Forum Discussion
jgorigo
4 years agoRegular Visitor
Linear interpolation DAX measure
Hola a todos. Agradezco cualquier ayuda que me proporcionen. Tengo 2 tablas: uf_prosp y TBL_CCS_DAP_Test Las 2 se relacionan con un campo fecha_proceso (31/12/2021 y 31/01/2022) y plazo_residual...
- 4 years ago
Hi! You can use logic like this:
VAR CurrentRow = MAX('Calendar'[WEEKINT])
VAR ProductionLW1 = CALCULATE([Value],FILTER(ALL('Calendar'), 'Calendar'[WEEKINT] = CurrentRow - 1))
VAR ProductionLW2 = CALCULATE([Value],FILTER(ALL('Calendar'), 'Calendar'[WEEKINT] = CurrentRow - 2))
technolog
Super User
4 years agoHi! You can use logic like this:
VAR CurrentRow = MAX('Calendar'[WEEKINT])
VAR ProductionLW1 = CALCULATE([Value],FILTER(ALL('Calendar'), 'Calendar'[WEEKINT] = CurrentRow - 1))
VAR ProductionLW2 = CALCULATE([Value],FILTER(ALL('Calendar'), 'Calendar'[WEEKINT] = CurrentRow - 2))