Skip to main content
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.

Regular Visitor

Power BI REST API for Capacities - Syntax for $filter with nested json

I am trying to filter the admin capatities api for the nested status of the last refresh, but am having trouble with the syntax for the api call. Here is an example of a call that doesn't work.  I have tried many different delimeters with no success.  I have provided an example of the response below.  The short question:  How do I filter on just the lastRefresh status?


refreshables_url = "$filter=lastRefresh/status eq Failed


The below documentation only shows a filtering example at the top level.


Regular Visitor

Thanks for post!  I have used the dataset API before and then looped through the output in my PowerShell.  I was hoping the Capacity Refresh API allowed me to do this within a single call, using the nested json output in the $filter.  My alternative using this API is to pull back a day's worth of refreshes into an object variable and drill down to the status within PowerShell.  Thought I wouldn't have to do that, but maybe the code behind the API doesn't allow to filter on anything nested in the response.  It would just be good to know this in their documentation so I am not wasting my time trying to figure it out.

Community Support
Community Support

Hi, @MHald ;

You can check if these related post can is useful to you.


Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

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


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
Top Kudoed Authors