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