Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
7 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |