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
| 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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!