The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I need to exporting data from DevOps OData to Power BI Desktop, namely from WorkItems. However, I am not able to expand the table in Teams column. E.g., I get the following error:
«
DataSource.Error: OData: Request failed: The remote server returned an error: (400) Bad Request. (VS403483: The query specified in the URI is not valid: VS403489: The Analytics Service doesn't support key or property navigation like WorkItems(Id) or WorkItem(Id)/AssignedTo. If you getting that error in PowerBI, please, rewrite your query to avoid incorrect folding that causes N+1 problem..)
Details:
DataSourceKind=OData
DataSourcePath=https://analytics.dev.azure.com/<my-OrganizationName>/<my%20ProjectName>/_odata/v1.0/WorkItems(<WorkItemId>)/Teams
Url=https://analytics.dev.azure.com/<my-OrganizationName>/<my ProjectName>/_odata/v1.0/WorkItems(<WorkItemId>)/Teams
»
This is the M query that I have:
«
let
Source = OData.Feed("https://analytics.dev.azure.com/<my-OrganizationName>/<my%20ProjectName>/_odata/v1.0/WorkItems", null, [Implementation="2.0"]),
#"Expanded Teams" = Table.ExpandTableColumn(Source, "Teams", {"TeamName"}, {"Teams.TeamName"})
in
#"Expanded Teams"
».
According to this https://docs.microsoft.com/en-us/powerquery-m/table-expandtablecolumn it should work.
Do you think is that the Project Name as a space in the name?
The Project Name is "ABC v2", where ABC is something else.
Thanks in advance,
Tiago.
Solved! Go to Solution.