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 Community!
to get information about managed devices we are using Graph API Queries like:
In Power Bi one can then expand "deviceCompliancePolicyStates" colmn and process the data.
Now we have an request to store this data permanently in the database with the bunch of other data.
I`ve noticed that exactly the same query didn`t return "deviceCompliancePolicyStates" data if i use it via web request ( for example in PowerShell or Graph Explorer - Microsoft Graph). I know its possible to retrieve the same data for every single device using:
but it takes quite a while to process all data. $expand don`t work as well
So the question is:
is it possible to retrieve exactly the same data from the query via web request, as they are displayed in Power BI?
Solved! Go to Solution.
Most likely Power Query is automatically expanding the lookup fields. In Powershell you have to do that manually.
Most likely Power Query is automatically expanding the lookup fields. In Powershell you have to do that manually.
Are you using the Graph Security third party connector, or standard Web.Contents calls? Have you tried ODATA instead?
Hello @lbendlin ,
In Power BI we are using OData.Feed and we get all data we want. The problem is, that using exactly the same query not in Power BI, but in Powershell ( via Invoke-WebrRequest) we get less attributes. So how is that possible, that the same query retrievs different data, depending on method we are using for calls?
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 |
---|---|
4 | |
4 | |
3 | |
3 | |
2 |