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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |