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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

VSTS.Feed returns incorrect columns

I am using VSTS.Feed so that I can query both the Azure DevOps OData and Rest services while only having to configure authorization once.

 

I have defined the folowing query in Power BI using VSTS.Feed:

 

 

let
    Source = VSTS.Feed("https://analytics.dev.azure.com/(organization)/(project)/_odata/WorkItems?$apply=aggregate(CompletedWork with sum as SumOfCompletedWork, RemainingWork with sum as SumOfRemainingWork)", [])
in
    Source

 

 

 

When I retrieve the data I expect two columns: SumOfCompletedWork and SumOfRemainingWork. However, Power BI shows all columns as defined in the metadata of the WorkItems entity:

2020-02-18 11_36_30-Clipboard.png

 

I have debugged the HTTP calls that Power BI does using Fiddler and see that PowerBI retrieves the full endpoint metadata at url: https://analytics.dev.azure.com/(organization)/(project)/_odata/$metadata

While the OData result specifies the metadata as following: 

https://analytics.dev.azure.com/(organization)/(project)/_odata/$metadata#WorkItems(SumOfCompletedWo...)

 

So to me this seems like a bug in the VSTS.Feed function. Has anyone seen similiar behaviour or know how to fix this (using the VSTS data connector)?

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Firstly please test your code in Visual Studio.

https://docs.microsoft.com/en-us/azure/devops/report/powerbi/odataquery-connect?view=azure-devops

It is said there are some updates for Azure DevOps Analytics.

https://stackoverflow.com/questions/60206820/power-bi-report-using-azure-devops-as-data-source-stopped-functioning

 

Alternatively, you could use odata or Azure DevOps connector to connect to Azure DevOps data,

then use other connectors to connect to "Rest Services",

It is support to combine or append data from different data sources in Power BI.

 

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

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors