This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi all,
I am facing issues with pulling Azure DevOps Capacity related data into Power BI.
let
Source = Web.Page(Web.Contents("http://dev.azure.com/{organization}/{project}/{team}/_apis/work/teamsettings/iterations/{iteration-id}/capacities?api-version=6.0"))
in
Source
let
Source = Web.Contents("GET http://dev.azure.com/{organization}/{project}/{team}/_apis/work/teamsettings/iterations/{iteration-id}/capacities?api-version=6.0")
in
Source
When I use the below URL directly in the browser, I get the expected result:
http://dev.azure.com/{organization}/{project}/{team}/_apis/work/teamsettings/iterations/{iteration-id}/capacities?api-version=6.0
Can someone help me rectify the M-query that I am using here to get the data in PowerBI in a tabular format?
@Anonymous I have similar need and since your post was the first place I found I would like to share my learning curve and solution approach with you that has worked.
Learning Curve:
Solution:
REST APIs Used
Image of the Cloud flow used
<Image cannot be loaded>
Parse Jason Schema:
After this got a collection of JSON files to process in POWERBI. Hope this helps.
Hi @Anonymous ,
1, Connect with data by using OData queries - Azure DevOps | Microsoft Docs
2, Connect to Power BI Data Connector - Azure DevOps | Microsoft Docs
3, If you need use Azure DevOps API, please refer to the code below.
let
Source = Json.Document(
Web.Contents(
"https://dev.azure.com/{organization}/{project}/_apis/work/teamsettings/iterations/{iterationId}/capacities/{teamMemberId}?api-version=6.0"
)
),
#"Converted to Table" = Table.FromRecords({Source})
in
#"Converted to Table"
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a lot for the response.
When I try to use the method mentioned in point 3, I get the below error:
"DataSource.Error: The downloaded data is HTML, which isn't the expected type. The URL may be wrong or you might not have provided the right credentials to the server."
The URL is correct because when I use it directly in the browser it gives the correct response. The credentials are correct too.
Could you please help me with this error?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |