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.
Hey todo,
Muchas gracias por ayudarme en este tema.
Tengo 2 mesas (PA0000 y PA0001)
Con digamos 2 registros en PA0000 (PERNR 1 & PERNR 2) y 2 registros en PA0001 con también PERNR 1 & 2 pero con diferente fecha de inicio y finalización.
Ahora quiero configurar una medida/columna calculada/columna donde obtengo un 1 para PERNR 1 y un 0 para PERNR 2 porque BEGDA de PERNR1 <- HOY & ENDDA de PERNR 1 > HOY y PERNR de PA0000 (1 en este caso) se encuentra en PA0001.
En "excel terms" quiero hacer un VLOOKUP del PERNR en la tabla PA0001 pero con el filtro adicional de la fecha.
Solved! Go to Solution.
Pruebe esta medida:
Lookup Result =
VAR vToday =
TODAY ()
VAR vLookupTable =
FILTER ( PA0001, vToday >= PA0001[BEGDA] && vToday <= PA0001[ENDDA] )
VAR vResult =
IF ( COUNTROWS ( vLookupTable ) = 0, 0, 1 )
RETURN
vResult
Crear imagen de tabla con PA0000[PERNR]:
Proud to be a Super User!
Pruebe esta medida:
Lookup Result =
VAR vToday =
TODAY ()
VAR vLookupTable =
FILTER ( PA0001, vToday >= PA0001[BEGDA] && vToday <= PA0001[ENDDA] )
VAR vResult =
IF ( COUNTROWS ( vLookupTable ) = 0, 0, 1 )
RETURN
vResult
Crear imagen de tabla con PA0000[PERNR]:
Proud to be a Super User!
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 |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |