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 / Filter Gallery on a Lo...
Power Apps
Unanswered

Filter Gallery on a Lookup value - circular reference.

(0) ShareShare
ReportReport
Posted on by 44

I have a Canvas app that is where I want it with a gallery and a form. It's all based on a SharePoint list with many columns and a Lookup for Business Area that has 267 rows. 

 

As the attachment depicts, I've been unsuccessful at filtering the gallery on the organization Business Area Lookup below because I get circular reference errors. 

 

My Dropdown looks like this:

('... Organization', Title) 

 

Note: using ... in place of the real organization name to keep confidential

 

Search(
[@'Information Map Attestation'], SearchInput1.Text, "Title", "Title"
)) && ([@'... Organization'],Title.Value = BusAreaFilter.Selected.Value || BusAreaFilter.Selected.Value = Blank() )
)

FilterInformationMap.png
InformationMapApp.png
Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Title.Value in your Search() statement does not sound like a column name in your list. Have you tried just Title?

     

    Hope that helps,

    Bryan

  • wrightcomply Profile Picture
    44 on at

    Thank you, Bryan for your reply. The search function I showed was one of many ideas I've tried. 

     

    Here's what I need to do:

     

    1. I need to filter on Business Area column on my sharepoint list. The Business Area column is a Lookup column because it has over 50 items. I'm learning that PowerApps doesn't play will with SharePoint lookup columns and haven't found a solution where someone has been successful with the delegation issue with them. 

    2. Here is what I've tried in the filter function but get errors:  

     

    Filter(
      'Meijer Organization',
      Title.Value = busAreaFilter.Selected.Value)
    )

     

    What I get is a circular error on this function. The Meijer Organization is the Lookup table. the busAreaFilter is the filter dropdown box on my PowerApp. 

     

    Does this help clarify any better? My attachments hopefully show what I'm trying to do and where the placement of the busAreaFilter is located in relation to a search box (Search([@'Information Map Attestation'], SearchInput1.Text, "Title", "Title"). The title here is pointing to the main (base) SharePoint List. 

     

    I'm wondering if the two titles are bouncing against each other?

  • BCLS776 Profile Picture
    8,994 Moderator on at

    Yes, I avoid using the built-in Title column in a SharePoint List with a Power App. In fact, I usually turn off its "required" status and ignore it.

     

    As you've discovered, lookup columns in a SharePoint list interfere with delegation and make interacting with the list several degrees more difficult. Instead, I'll put in a column that contains the ID of a record from another list I might want to lookup and do simpler lookups in the app (which are often then delegable).

     

    Similarly, with Choice fields, I'll just use a single line of text column to store the choice label and make sure the app handles the label text properly.

     

    Bryan

  • wrightcomply Profile Picture
    44 on at

    Thanks Bryan. 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard