I have a excel table with data in multiple columns. I am trying to create another table that will be used for in-cell dropdown with only unique values. I need to get unique values independently between each columns.
Source table
geo product type
g1 p1 t1
g1 p2 t1
g1 p3 t2
g1 p4 t1
g2 p1 t2
g2 p2 t1
g2 p3 t2
g2 p4 t1
Expected result:
geo product type
g1 p1 t1
g2 p2 t2
null p3 null
null p4 null
I can get unique columns as lists
geo_list = List.Distinct(Table.Column(Source, "geo"))
product_list = List.Distinct(Table.Column(Source, "product"))
type_list = List.Distinct(Table.Column(Source, "type"))
But cannot find a way how to merge it into one table without any kind of join.