zzzzzzzzzz
New Member
- Joined
- Nov 10, 2014
- Messages
- 2
Hi all,
I'm trying to create a dynamic tool that references end user input in the query and performs operations on the source data.
Right now I have a table on a spread sheet where a user can provide input which is then called in the query to create a custom column. The inputs correspond to column names in the query. Example:
let
Source = *Underlying Table*
ColumnName1 = Input1,
ColumnName2 = Input2,
ColumnName3 = Input3,
CreateCustomColumn = Table.AddColumn(Source, "CustomColumn1", each "["&ColumnName1&"]" = "["&ColumnName2&"]")
in
CreateCustomColumn
I want it to return the value as true or false depending on if the records match. The issue is that once it evaluates "["&ColumnName1&"]" and it compares it as a string and not the fields of each record. I haven't found a way for it to recognize them as records. Help!
(Side note: language "M" kinda blows.. no loops?!)
I'm trying to create a dynamic tool that references end user input in the query and performs operations on the source data.
Right now I have a table on a spread sheet where a user can provide input which is then called in the query to create a custom column. The inputs correspond to column names in the query. Example:
let
Source = *Underlying Table*
ColumnName1 = Input1,
ColumnName2 = Input2,
ColumnName3 = Input3,
CreateCustomColumn = Table.AddColumn(Source, "CustomColumn1", each "["&ColumnName1&"]" = "["&ColumnName2&"]")
in
CreateCustomColumn
I want it to return the value as true or false depending on if the records match. The issue is that once it evaluates "["&ColumnName1&"]" and it compares it as a string and not the fields of each record. I haven't found a way for it to recognize them as records. Help!
(Side note: language "M" kinda blows.. no loops?!)