I'm trying to isolate one half of the relationship set between two columns in a table. For instance, if I have a table like this:
It show a relationship set between A and B (or B and A) twice. Once for each direction of the relationship...first A to B and then B to A.
So how might I be able to identify and filter out the second half (direction) of the relationship set?
To achieve a result like this?
Is there a "simple" way?
There may be a more efficient way, but this should work:
List.Sort
on a list of the cell values, and then using List.Accumulate
to join the strings. For example, the expression to use in Add Custom Column could be each List.Accumulate(List.Sort({[Column1], [Column2]}), "", (state, current) => state & ";" & current)
.Table.Distinct
).