Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
pdesmarais
Frequent Visitor

Powerbi - Graph.microsoft.com

Im trying to get details in PowerBI from the Graph API, im able to connect, but the data return is always empty?

I need a lot of Graph info just like this secure score
https://graph.microsoft.com/stagingBeta/reports/getTenantSecureScores(period=1)/content
DataFormat.Error: OData: The given URL neither points to an OData service or a feed: 'https://graph.microsoft.com/stagingBeta/reports/getTenantSecureScores(period=1)/content'.
Details:
https://graph.microsoft.com/stagingBeta/reports/getTenantSecureScores(period=1)/content

Issue: Examples return just a 3bytes files.
let
token = "eyJMX1",
Source = OData.Feed("https://graph.microsoft.com/v1.0/reports/getOneDriveUsageAccountDetail(period='D7')", null, [Headers = [Authorization = "Bearer " & token] ])
in
Source


This one Works:
let
token = "eyJMX1",
Source = OData.Feed("https://graph.microsoft.com/v1.0/users", null, [Headers = [Authorization = "Bearer " & token] ])
in
Source

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@pdesmarais,

 

You may take a look at link below.

https://stackoverflow.com/questions/48708196/getting-microsoft-graph-api-report-data-into-power-bi-u...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This doesn't work.

 

Everything is getting out of Office 365 Report to Graph.Microsoft.Com and nobody can make it work in PowerBI

Do you have a sample file or real article that is recent enough.

 

In powershell everything works like magic, my Token is working, etc.

Powerbi Desktop and Services Fails

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.