Forum Discussion
Column from Different Tables
Hey,
If I understand well your question, the next code do what you want.
let
Source = Table1,,
#"Type modifié" = Table.TransformColumnTypes(Source,{{"ID", Int64.Type}, {"Cost", Int64.Type}}),
#"Requêtes fusionnées" = Table.NestedJoin(#"Type modifié",{"ID"},Table2,{"ID"},"Table2",JoinKind.LeftOuter),
#"Table2 développé" = Table.ExpandTableColumn(#"Requêtes fusionnées", "Table2", {"ID", "Cost"}, {"Table2.ID", "Table2.Cost"}),
#"Personnalisée ajoutée" = Table.AddColumn(#"Table2 développé", "Personnalisé", each [Cost]-[Table2.Cost]),
#"Lignes filtrées" = Table.SelectRows(#"Personnalisée ajoutée", each [Personnalisé] <> 0)
in
#"Lignes filtrées"
- Anonymous8 years agoNot applicable
Hey Hactogeek, thanks for the reply.
I'm not sure what I'm doing wrong here, can you help me once more?
let
Source = Cost,
#"Type modifié" = Table.TransformColumnTypes(Source,{{"ID", Int64.Type}, {"Total -2018", Int64.Type}}),
#"Requêtes fusionnées" = Table.NestedJoin(#"Type modifié",{"ID"},Table2,{"ID"},"Cost",JoinKind.LeftOuter),
#"Table2 développé" = Table.ExpandTableColumn(#"Requêtes fusionnées", "Cost", {"ID", "Total -2018"}, {"Table2.ID", "Table2.Cost"}),
#"Personnalisée ajoutée" = Table.AddColumn(#"Table2 développé", "Personnalisé", each [Cost]-[Table2.Cost]),
#"Lignes filtrées" = Table.SelectRows(#"Personnalisée ajoutée", each [Personnalisé] <> 0)
in
#"Lignes filtrées"