I'm hoping someone out here can help me, or at least confirm that this is an issue.
I have two queries based on the same table. Both use Excel.CurrentWorkbook(){[Name="Data"]}[Content] to call the source. The table contains records of interactions with clients, and there can be more than one interaction with each client (so, there is a client ID and an interaction ID, with a bunch of other fields relevant to each interaction).
Query1 contains all records. Query2 is a subset of the interaction records that contains the duplicate record with the most complete data. Query 2 is merged with Query1 as follows:
Table.NestedJoin(#"Source",{"Client ID"},Query2,{"Client ID"},"Query2",JoinKind.LeftOuter)
The joined data, however, do NOT reflect the cases in Query2. Instead of joining to the cases in Query2, at least one of my Query1 cases gets linked to one of the cases that was filtered OUT of Query2 (not retained, and it does not appear in my Query2 results). It appears as though my join is allowing Excel to retain and join to Query1 cases that were removed from Query2 with a filter.
I hope this makes sense. I'm stumped. I know I can find a workaround, but I'd like to understand whether this is broken functionality or broken brain.
I have two queries based on the same table. Both use Excel.CurrentWorkbook(){[Name="Data"]}[Content] to call the source. The table contains records of interactions with clients, and there can be more than one interaction with each client (so, there is a client ID and an interaction ID, with a bunch of other fields relevant to each interaction).
Query1 contains all records. Query2 is a subset of the interaction records that contains the duplicate record with the most complete data. Query 2 is merged with Query1 as follows:
Table.NestedJoin(#"Source",{"Client ID"},Query2,{"Client ID"},"Query2",JoinKind.LeftOuter)
The joined data, however, do NOT reflect the cases in Query2. Instead of joining to the cases in Query2, at least one of my Query1 cases gets linked to one of the cases that was filtered OUT of Query2 (not retained, and it does not appear in my Query2 results). It appears as though my join is allowing Excel to retain and join to Query1 cases that were removed from Query2 with a filter.
I hope this makes sense. I'm stumped. I know I can find a workaround, but I'd like to understand whether this is broken functionality or broken brain.