Forum Discussion

mr_wizard's avatar
mr_wizard
Icon for Resolver I rankResolver I
3 years ago
Solved

create parameter from concatenation

I have a report that sources from several Excel files under a SharePoint site.  I'm trying to create a report-level parameter for each file to make maintenance of the sourcing easier (say, if the fil...
  • mr_wizard's avatar
    mr_wizard
    3 years ago

    It seems that it's not possible to create parameters from other parameters (unless you query parameters, which is not applicable in my scenario).  The solution is...

    1) create the following 3 parameters:

    parameter A = 'some super long path'

    parameter B = \Excel_file1.xlsx'

    parameter C = '\Excel_file2.xlsx'

     

    2) and then concatenate the parameters at the query level, e.g.:

    let
    FullFilePath = #"parameter A" & #"parameter B",
    Source = Excel.Workbook(File.Contents(FullFilePath ), null, true),

    ...