Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Tengo dos mesas
La primera tabla tiene una fecha donde se emitieron las citas.
La segunda tabla tiene una fecha en la que el oficial estaba en un horario determinado.
Las tablas están unidas por un ibm único #
Estoy tratando de filtrar los datos para mostrar en qué turno escribió el oficial los boletos. Puedo obtener citas totales escritas por el oficial, pero si ese oficial trabaja en un turno diferente, también produce el total de ese turno como un total del oficial.
IBM | offense_date | citation_number |
jj220 | 01/01/2022 | 1 |
jj220 | 01/01/2022 | 2 |
jj220 | 01/02/2022 | 5 |
aa420 | 01/01/2022 | 3 |
aa420 | 01/01/2022 | 4 |
aa420 | 01/02/2022 | 6 |
IBM | turno | fecha de inicio del turno |
jj220 | un cambio | 01/01/2022 |
jj220 | un cambio | 01/02/2022 |
aa420 | b turno | 01/01/2022 |
aa420 | t shift | 01/02/2022 |
Solved! Go to Solution.
Crear una columna calculada en la tabla Citación
Shift =
var offenseDate = Citations[Offense date]
return SELECTCOLUMNS( TOPN( 1,
FILTER( RELATEDTABLE( Shifts ), Shifts[Start date] <= offenseDate ),
Shifts[Start date], DESC ),
"@shift", Shifts[Shift]
)
Crear una columna calculada en la tabla Citación
Shift =
var offenseDate = Citations[Offense date]
return SELECTCOLUMNS( TOPN( 1,
FILTER( RELATEDTABLE( Shifts ), Shifts[Start date] <= offenseDate ),
Shifts[Start date], DESC ),
"@shift", Shifts[Shift]
)
Gracias que funciona
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 |