cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate II
Advocate II

Erratic behaviour when filtering Gallery Lists

I have two Apps that both filter a gallery based on the selection of an item in another seperate gallery list. The first works perfectly, the second flat out refuses and constantly throws an invalid argument or invalid seperator error, despite the syntaz being identical on both.

 

App 1 (Working)

Filter(DiaryData,  Project = Gallery2_1.Selected.Site)

App 2 (Errors)

Filter(BoQ, Area = ProjectArea.Selected.Area)

 

The only things that are different is that the second example is working off a list with a lot of repetitive data & both galleries are on the same screen.

 

I've found several other threads mentioning this issue, but the solutions given (add .Value) don't do anything for me. Anybody got any clues? Thanks in advance.

 

RS

 

 

2 REPLIES 2
Highlighted
Advocate II
Advocate II

Re: Erratic behaviour when filtering Gallery Lists

Forgot to mention, if I amend the second App Gallery Item formula to: 

 

Filter(BoQ, Area = "Level 00") where Level 00 is a selectable value from the first gallery List, it works flawlessly. 

Highlighted
Community Support
Community Support

Re: Erratic behaviour when filtering Gallery Lists

Hi @RS,

 

Could you please explain a bit for the data type of the Area field in the first gallery of your example 2?

The Area field in the filter function should be in the same type.

If the Area field in first gallery is lookup type, then adding .value should make it work:

Filter(BoQ, Area = ProjectArea.Selected.Area.value)

If the Area is also a lookup type in the BoQ, then the formula should be:

Filter(BoQ, Area.value = ProjectArea.Selected.Area.value)

For some known issues, check:

Connect to SharePoint from PowerApps

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Check this Out

Announcing

Class of 2020- Season 2

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,764)