Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Solved! Go to Solution.
Hi @awap87,
It could be done.
First, create a function using syntax like below.
let functionName = (param1 as datatype) =>
let
Source = Json.Document(Web.Contents("https://[region ID]-api.dotmailer.com/v2/campaigns/" & param1 & "/summary").
in
Source
in functionName
After you have inserted the ID column in to a new table, then you can add a custom column to the table that calls/invokes the function above. ![]()
Reference:
http://datachix.com/2014/05/22/power-query-functions-some-scenarios/
http://satalyst.com/power-query-creating-a-parameterized-function-in-m/
Regards
Hi @awap87,
It could be done.
First, create a function using syntax like below.
let functionName = (param1 as datatype) =>
let
Source = Json.Document(Web.Contents("https://[region ID]-api.dotmailer.com/v2/campaigns/" & param1 & "/summary").
in
Source
in functionName
After you have inserted the ID column in to a new table, then you can add a custom column to the table that calls/invokes the function above. ![]()
Reference:
http://datachix.com/2014/05/22/power-query-functions-some-scenarios/
http://satalyst.com/power-query-creating-a-parameterized-function-in-m/
Regards
Hi @v-ljerr-msft,
I do have the similar requirment and was going through theis solution but I didnt understand where to write this function and from where to call? Sorry new to this type of work.
Please advise.
Thanks
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 53 | |
| 41 | |
| 15 | |
| 13 |
| User | Count |
|---|---|
| 97 | |
| 83 | |
| 35 | |
| 29 | |
| 25 |