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 and LookUp give...
Power Apps
Answered

Filter and LookUp gives me a runtime error

(0) ShareShare
ReportReport
Posted on by 149

Hello all experts!

 

I have two different Tables in dataverse respectively called Document and Site Members

These two tables have a relationship with a LookUp type called SiteID (SiteID stems from another table called Site).

So, Document table has a column called SiteID and Site Member table has a column called SiteID. 

- Document table have all the relevant document's that I wanna visualize in a Gallery,

- Site Member table have information of the logged in user such as email address

- Site table have a SiteID that have a relationship with both Documents and Site Members

 

What I'm trying to accomplish is to filter a Gallery based on your SiteID and show all records in Document that have the same SiteID as the Site Member.

 

In plain English, look into the current logged in users SiteID and  find me all the documents from the table Documents that have the same SiteID.

 

What I have done until now is to create a LookUp where I'm basically trying to identify the user (this is on App = OnStart property):

 

 

Set(
 varStoreSiteID,
 LookUp(
 'Site Members',
 'User Mail' = profileMail,
 SiteID.'Location Name'
 )
);

 

after this, I have created a Filter on a Gallery:

 

Filter(Documents,
 varStoreSiteID = SiteID.'Location Name'
)

 

 

This throws me a runtime error with: The left side of the 'Equal' operator must be a property of the entity.

 

Can anyone tell me what I'm doing wrong or even better, is there a better solution than what I have done in my Table structure? 

 

Please note, profileMail is a global variable of the users Email address

Categories:
I have the same question (0)
  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    @Rama96x 

    If you reverse the conditional part of your call to Filter so that it looks like this, does that make a difference?

    Filter(Documents,
     SiteID.'Location Name' = varStoreSiteID
    )

     

  • Rama96x Profile Picture
    149 on at

    @timl I did try that based on an other post, but that didn't help unfortunately 

  • Verified answer
    Rama96x Profile Picture
    149 on at

    I don't have any explanation of why, but it suddenly stopped giving me any runtime errors, so now it works....

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard