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
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 32 | |
| 16 | |
| 13 |
| User | Count |
|---|---|
| 84 | |
| 70 | |
| 38 | |
| 27 | |
| 24 |