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! Get ahead of the game and start preparing now! Learn more
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! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 137 | |
| 102 | |
| 71 | |
| 67 | |
| 65 |