Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
| BranchID | ParkCode |
| 123456 | Example1 |
| 456789 | Example2 |
| 147258 | Example3 |
let
// Define the endpoint
url = API_Endpoint,
// Define the JSON body
jsonBody = Text.ToBinary("{ ""network"": { ""network_id"": "& Network_ID &" }, ""branch"": { ""branch_id"": [===BranchID Goes Here===] } }"),
#"Added custom" = Table.AddColumn(expandedUserInformation, "Park Code", each "[===ParkCode Goes Here===]"),
Solved! Go to Solution.
Hey,
Maybe you can turn the query into a function.
func_GetEmails
(vBranchID as text, vParkCode as text) =>
let
...
Then call the function by adding a column
Table.AddColumn(PreviousStep, "getEmails", each func_GetEmails([BranchID], [ParkCode]))
Make the function return a nested table/record, which then can expand.
Hey,
Maybe you can turn the query into a function.
func_GetEmails
(vBranchID as text, vParkCode as text) =>
let
...
Then call the function by adding a column
Table.AddColumn(PreviousStep, "getEmails", each func_GetEmails([BranchID], [ParkCode]))
Make the function return a nested table/record, which then can expand.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.