cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RS
Level: Powered On

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
RS
Level: Powered On

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. 

Community Support Team
Community Support Team

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (5,232)