Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello, I am trying to create a function using M that will concatinate two parameter values from a table I loaded into PowerBI to create a functional URL (report server name & Report Path), but I cannot seem to get the function to reference the local table correctly.
My PBI table looks like this:
| parameter | value |
| RptServer | http://<ssrssvr>/ReportServer/Pages/ReportViewer.aspx? |
| Rpt1 | %2fProduction%2fRpt1&rs:Command=Render |
My function looks like this:
let RptParam=(TableName,Param) =>
let
Solved! Go to Solution.
Thank you for responding, but I found another way around this. I still have my sql param table in the database, but I have instead created a view in sql that concatinates the server to the various report paths in a sql view and then pivots the data into a single row with however many reports listed I want to use. Once I import that view into PBI, its a simple manner of creating a measure that uses the proper column.
FYI, I use this method to allow navagation from the PBI file to an SSRS detail report.
Thanks!
Use this one
let RptParam=(Source,Param) =>
let
param1 = Table.SelectRows(Tbl , each ([parameter] = "RptServer")), <-- hard coded report server path
param2 = Table.SelectRows(Tbl , each ([parameter] = Param)), <-- report I want to call
value1 = Record.Field(param1{0},"value"),<-- hard coded report server path
value2 = Record.Field(param2{0},"value"),<--obtains path based on the report I want to call
urlstr = value1 & value2 <-- concatinate report server to report path to create entire URL to use
in
urlstr
in RptParam
Thank you for responding, but I found another way around this. I still have my sql param table in the database, but I have instead created a view in sql that concatinates the server to the various report paths in a sql view and then pivots the data into a single row with however many reports listed I want to use. Once I import that view into PBI, its a simple manner of creating a measure that uses the proper column.
FYI, I use this method to allow navagation from the PBI file to an SSRS detail report.
Thanks!
Instead of "Source" you need to point to the name reference for the other query.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 11 | |
| 11 | |
| 7 | |
| 6 |