Forum Discussion

primolee's avatar
primolee
Helper V
6 years ago
Solved

Calling a function and function name is in a data row

Hello everyone,   Sorry for the repost, I think this is more Power Query related so I am posting here again.   I would like to add a new column which calls pre-made functions, and the name of fun...
  • artemus's avatar
    artemus
    6 years ago

    I think I understand what your trying to do now... Don't use Expression.Evaluate, it will just make your life harder. Instead use something like:

    Record.Field(Output, [Processor])([Folder Path] & [Name], [Publisher])
  • artemus's avatar
    artemus
    6 years ago

    Oh I see what is missing...

     

    Change:

     

     

     GoogleGSMDailyProcessor = (fileName as text, publisherName as text) => GoogleGSMDailyProcessor,

     

     

    to

     

     

     GoogleGSMDailyProcessor = (fileName as text, publisherName as text) => GoogleGSMDailyProcessor(fileName, publisherName),

     

     

    Also, if you hit the firewall issue in the online service, go to edit credentialls (for the dataset object, not the report itself) and set "Privacy level setting for this data source" to None