Forum Discussion
Table.SelectColumns error
- 3 years ago
Hi Anonymous,
Assuming that your example is in th econtext of Table.AddColumn() the behaviour is quite weird.
Do you want to try to split the formula to something like:
t2 = Table.SelectColumns(#"Table2", {"Column1", "Column2"}), t1 = Table.AddColumn(..., ..., each if [ValueFromThisTable] = null then null else t2)and see if this works Ok?
Thanks,
John
Hi Anonymous,
Assuming that your example is in th econtext of Table.AddColumn() the behaviour is quite weird.
Do you want to try to split the formula to something like:
t2 = Table.SelectColumns(#"Table2", {"Column1", "Column2"}),
t1 = Table.AddColumn(..., ..., each if [ValueFromThisTable] = null then null else t2)and see if this works Ok?
Thanks,
John
Well it turns out I just needed to refresh Power Query Editor, the values have always been there they just were showing null. Found this out after trying your version and multiple variations of each step, one by one until it broke. It always broke once I clicked to view one of the tables to validate the data however an expansion of the table reveals its all there.
Very odd