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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 38 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 141 | |
| 105 | |
| 63 | |
| 36 | |
| 35 |