Forum Discussion

NoobAnalyst01's avatar
8 years ago
Solved

Using list in parameter in M language

Hi,   I have a list of orderid in my repot. then i have a anohter query pull data based on this list. here is my M language for using this list as in statement:   WHERE #(lf)     WEBORDERNUM IN("...
  • OwenAuger's avatar
    8 years ago

    Hi NoobAnalyst01

     

    One method:

    To put single-quotes around each item in the list, change

     

    Text.Combine(List,",")

    to

     

    Text.Combine( List.Transform(List, each "'"&_&"'"), ",")

    Regards,

    Owen