I'm trying to filter a table but use a dynamic reference to determine column is filtered, like this,
This isn't working... what am I missing? I'm assuming something is amiss in the "[" & FieldToFilter & "]" section but I can't figure out the correct syntax. I'm trying to replicate [FieldToFilter] but M doesn't seem to work that way.
Thanks
Code:
Table.SelectRows(MyTable, each ("[" & FieldToFilter & "]" = "FilterValue"))
This isn't working... what am I missing? I'm assuming something is amiss in the "[" & FieldToFilter & "]" section but I can't figure out the correct syntax. I'm trying to replicate [FieldToFilter] but M doesn't seem to work that way.
Thanks