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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
jonathan-levy
New Member

workitem parent parent

Hi

 

I'm trying to get the grand parent of a work item in VSTS. So I want to get the epic work item from a user story but it's giving me this error:

 

The query specified in the URI is not valid. 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

 

Any idea how I can solve it? I've seen the comments here (https://docs.microsoft.com/en-us/vsts/report/extend-analytics/odata-query-guidelines) but I can't make sense of it.

 

Thanks

1 REPLY 1
Anonymous
Not applicable

@jonathan-levy,

Which URL do you put in the ODATA entry of Power BI Desktop? As stated in the article you mentioned, it is recommended that you use explicit entity addressing. There is an example below.

https://{account}.analytics.visualstudio.com/_odata/v1.0/WorkItems?
  $filter=WorkItemId eq {id}
  &$select=WorkItemId, Title



Regards,
Lydia

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.