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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I'am new to Power Bi and have a question. This is my code to get some security product info. This is working. Now i want to add an extra column with the function value (Agent_ID). Can someone help me with this? Thanks a lot.
(Agent_ID as text) =>
let
Api_Token = VSAToken,
Source = Json.Document(Web.Contents("https://euvsa16.kaseya.net/api/v1.0/assetmgmt/audit/" & Agent_ID &"/software/securityproducts?$filter=IsActive eq true and ProductType eq 'Antivirus'",[Headers=[authorization="Bearer "&Api_Token]])),
#"Geconverteerd naar tabel" = Table.FromRecords({Source}),
#"Result uitgevouwen" = Table.ExpandListColumn(#"Geconverteerd naar tabel", "Result"),
#"Result uitgevouwen1" = Table.ExpandRecordColumn(#"Result uitgevouwen", "Result", {"ProductType", "ProductName", "Manufacturer", "Version", "IsActive", "IsUpToDate", "Attributes"}, {"Result.ProductType", "Result.ProductName", "Result.Manufacturer", "Result.Version", "Result.IsActive", "Result.IsUpToDate", "Result.Attributes"})
in
#"Result uitgevouwen1"
Solved! Go to Solution.
On the Add Column tab in the query editor, you can Invoke Custom Function, choose your function from the dropdown and your [Agent_ID] column as the input. Or you can add a custom column and use fxYourFunction([Agent Column]) too.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
On the Add Column tab in the query editor, you can Invoke Custom Function, choose your function from the dropdown and your [Agent_ID] column as the input. Or you can add a custom column and use fxYourFunction([Agent Column]) too.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.