Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi, I am using the following URL to capture information from Microsoft Defender 365 which includes the DeviceID of all the devices within the specified RBAC Group ID as a list:
https://api.securitycenter.microsoft.com/api/machines?$filter=rbacGroupId+eq+7529
I then need to be able to use the value.id file from this table to populate the following URL to then retrieve vulnerability details for all the devices that were brought back in that initial query:
Firstly, is this even possible with Power BI and if so, could someone please point me in the right direction?
Thanks.
Solved! Go to Solution.
Hi , @PeterShankland
As a sample , you can try to update the odata to a function, like this:
(ID)=>
let
t=ID+1
in
t
Then we can add a custom column in the Device ID table:
Then we can use the function each row:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , @PeterShankland
According to your description, you want to send a http request to get the DeviceID and then put the DeviceID in another http request url.
If this , i my thought, you can try to get the all DeviceID in a table as a list . And then you can create a custom funtion in Power Query Editor and the parameter is the DeviceID .You can refer to :
Understanding Power Query M functions - PowerQuery M | Microsoft Learn
Web.Contents - PowerQuery M | Microsoft Learn
And then you can use "Custom Column" to add a column and run the custom function and put the current DeviceID to the function.
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi, here is a screenshot of the first query showing the Device ID (value.id) that is required for the second query:
Then, looking at the following post about using Power BI to report on Defender 365 API data, I have started creating a new query using the advanced editor:
Microsoft Defender for Endpoint APIs connection to Power BI | Microsoft Learn
The query needs to include 'machines[value.id]' but I am not sure of the syntax.
Thanks.
Hi , @PeterShankland
As a sample , you can try to update the odata to a function, like this:
(ID)=>
let
t=ID+1
in
t
Then we can add a custom column in the Device ID table:
Then we can use the function each row:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Can you post the result of the first URL?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
81 | |
67 | |
61 | |
46 | |
45 |