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.
Hola a todos,
Tengo dos tablas A y B con los siguientes datos. Estoy tratando de tener una tabla con el último valor fr code'0' para cada nombre
Tabla A
Nombre | Código |
nombre1 | 1 |
nombre2 | 1 |
nombre3 | 1 |
TableB
Nombre | Código | updated_at |
nombre1 | 0 | 10/12/2017 |
nombre1 | 0 | 15/12/2017 |
nombre2 | 0 | 07/1/2020 |
nombre2 | 0 | 25/1/2020 |
nombre3 | 0 | 19/04/2020 |
A la tabla resultante le gustaría esto
Nombre | Código | updated_at |
nombre1 | 1 | |
nombre1 | 0 | 15/12/2017 |
nombre2 | 1 | |
nombre2 | 0 | 25/1/2020 |
nombre3 | 1 | |
nombre3 | 0 | 19/04/2020 |
Por favor, ayúdenme.
Solved! Go to Solution.
Hola @kathraji ,
Es una ligera modificación de la respuesta de amitchandak:
Table =
UNION (
SUMMARIZE (
TableB,
TableB[name],
TableB[code],
"updated_at", MAX ( TableB[updated_at] )
),
ADDCOLUMNS ( TableA, "updated_at", BLANK () )
)
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Saludos
Dedmon Dai
Hola @kathraji ,
Es una ligera modificación de la respuesta de amitchandak:
Table =
UNION (
SUMMARIZE (
TableB,
TableB[name],
TableB[code],
"updated_at", MAX ( TableB[updated_at] )
),
ADDCOLUMNS ( TableA, "updated_at", BLANK () )
)
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Saludos
Dedmon Dai
@kathraji, vea si esto puede funcionar
sindicato (
summarize(Table2, Table[name code],"updated_at" , max(updated_at)),
addcolumns(Tabla A,"updated_at" ,blank())
)
recomienda
https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
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 |