web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combo Box filter Galle...
Power Apps
Answered

Combo Box filter Gallery -> Circular References

(0) ShareShare
ReportReport
Posted on by 228

Hi everyone! 

 

I have a very annoying issue. 

 

I have a Combo Box sitting outside my gallery. The ComboBox1 items is = "ForAll(Filter(SP List, OrderNumber = Gallery1.AllItems.OrderNumber)),OrderNumber)"

 

In my Gallery I have the items filtered by: 

Filter(SP List, OrderNumber = ComboBox1.Selected.OrderNumber)

 

It's giving me a circular references error (as well as a headache!) 

 

Any help appreciated.

 

Thanks

 

Ed

 

Categories:
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    The Combobox formula is referring to the Gallery and the Gallery is getting the result from the Combobox. Circular reference.

     

    Can you alter the combobox formula

    "ForAll(Filter(SP List, OrderNumber = Gallery1.AllItems.OrderNumber)),OrderNumber)"

     

    To: Distinct(SP List, OrderNumber)

    Or SP List.OrderNumber

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

     

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @milky_bar_may 

    It looks like you are making this more complicated than it needs to be.  I suggest that you make the Items property of the combobox Sort(SP List', OrderNumber ), Descending) and make the Items property of the gallery Filter('SP List', OrderNumber = ComboBox1.Selected.OrderNumber)

  • milky_bar_may Profile Picture
    228 on at

    Both solutions worked perfectly, thank you.

     

    Some times I feel like the biggest idiot in the room !

     

    Thanks for your help @eka24 and @Drrickryp 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard