Forum Discussion

Whatever1's avatar
Whatever1
Icon for Helper I rankHelper I
5 years ago
Solved

How to use a parameter in an expression in M

I want to dynamically change a variable and use it to filter rows.   let    Variable = "ABC",    Source = anything,    #"Filtered Rows" = Table.SelectRows(source, each Text.Contains([FilterColum...
  • camargos88's avatar
    5 years ago

    Whatever1 ,

     

    How are you applying it ?

    I just tried it with a custom column and it worked.

    let _variable = "A" in
    
    Table.SelectRows(#"Changed Type", each Text.Contains([Value], _variable))