Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hola
Estoy tratando de combinar dos tablas donde:
Tabla 1:
Id | Pregunta 1 | Pregunta 2 |
1 | A | A |
2 | B | A |
Tabla 2:
Id | Pregunta 3 | Pregunta 4 |
3 | B | C |
4 | C | A |
Y con la esperanza de obtener un resultado de esto:
Id | Pregunta 1 | Pregunta 2 | Pregunta 3 | Pregunta 4 |
1 | A | A | ||
2 | B | A | ||
3 | B | C | ||
4 | C | A |
Me pregunto si puedo conseguir algún consejo sobre esto.
Muchas gracias.
Solved! Go to Solution.
@jinweitan , Anexar en la consulta de poder
https://radacad.com/append-vs-merge-in-power-bi-and-power-query
Vídeo -https://youtu.be/KyXIDInZMxk
@jinweitan , Anexar en la consulta de poder
https://radacad.com/append-vs-merge-in-power-bi-and-power-query
Vídeo -https://youtu.be/KyXIDInZMxk
Hola @jinweitan
puede hacerlo con Power Query de la siguiente manera:
// Table 1
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUXIE41idaCUjIMsJwosFAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ID = _t, #"Question 1" = _t, #"Question 2" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"ID", Int64.Type}, {"Question 1", type text}, {"Question 2", type text}}),
#"Appended Query" = Table.Combine({#"Changed Type", #"Table 2"})
in
#"Appended Query"
// Table 2
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlbSUXICYmelWJ1oJRMwS0fJUSk2FgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ID = _t, #"Question 3" = _t, #"Question 4" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"ID", Int64.Type}, {"Question 3", type text}, {"Question 4", type text}})
in
#"Changed Type"
Con saludos amables desde la ciudad donde la leyenda del 'Pied Piper de Hamelin' está en casa
FrankAT (Orgulloso de ser un Datanaut)