Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

REST api Filter fail that doesn't make sense.

This is probably more for the StackExchange bin, but I'll fire it here and see what happens.


I have a filter that fails when it's like this:

     ?$filter=SiteId eq 50 and Year_x002d_MonthId eq 92


but not this:

     ?$filter=Year_x002d_MonthId eq 92 and SiteId eq 50


It complains that the first one causes the possibility of a large list issue of too many items returned, but the second one doesn't, despite the identical syntax, just switched.


Site(Id) is a lookup column to a Sites (locations in the world) list with 100 items.

YearMonth(Id) is a lookup column to a YearMonth list with 400 items. (Every year and month combo for a decade.)


This same filter is used for multiple list, MetricA, MetricB, MetricC, which all have the requirement to record a Site & YearMonth. What would be the cause of needing to swap the location of the filter parameters to make this work, for only one of the lists, and not all three?



I don't have the ability to mark anything as answered, as my browser always blocks it. So, tell me how to fix that, and I'll mark that as an answer, too.


Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,637)