Forum Discussion

smpa01's avatar
smpa01
Icon for Community Champion rankCommunity Champion
2 years ago
Solved

Passing on a dynamic filter table to a join

AlexisOlson ImkeF CNENFRNL    How can I pass on a dynamic filter tbl to a join.   This is currently I am doing       let src=#table({"yr", "category","data"}, {{2023, "fed", #tab...
  • dufoq3's avatar
    dufoq3
    2 years ago

    What about this?

    = Table.NestedJoin(target, {"Year", "mo"}, Table.Combine(src[data]), {"yr", "month"}, "target", JoinKind.LeftOuter)

     

    or this:

    = Table.NestedJoin(target, {"Year", "mo"}, Table.Combine(Table.SelectRows(src, each [category]="fed")[data]), {"yr", "month"}, "target", JoinKind.LeftOuter)

     

    But maybe I still don't understand what do you exactly need. Sorry for that.