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

Filter gallery based on another gallery giving invalid argument type error

I'm new to powerapps and trying to setup a gallery that's filtered based on the selection of a gallery on another screen.  I've been searching and watching videos on it all day, but haven't been able to get it to work.  I'm not sure what I'm missing here.  Any help is greatly appreciated. 

 

My first screen has a Gallery called summaryGallery that pulls from a SharePoint list (New Planning Workstream Summary_1) with a number of fields, one of which is Workstream.  When a user clicks on a particular workstream, they're directed to a second screen that serves up all the details of that particular workstream.  On this screen is another Gallery called decisionGallery.  This gallery is also connected to a SharePointList called Critical Decision Log.  It includes a field called Workstream as well.  Workstream in both lists is a choice field (Dropdown).

 

I'm trying to get decisionGallery filtered based on the Workstream selected on the first screen in the summaryGallery.  However, no matter what I try I can't get results back and am mostly getting an "invalid argument type" error on the "=".  

 

I've tried:

Filter('Critical Decision Log', Workstream = summaryGallery.Selected.Workstream)

Filter('Critical Decision Log', Workstream = summaryGallery.Selected.Workstream.Value)

Filter('Critical Decision Log', Workstream = summaryGallery.Selected.Title7)  (where Title7 is the name of the label box holding the workstream)

Filter('Critical Decision Log',Workstream=summaryGallery.Selected.Title7.Text)

 

Any ideas on what could be causing the error and how to fix it?  Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Mike8
Level 10

Re: Filter gallery based on another gallery giving invalid argument type error

Hello, Can you try Filter('Critical Decision Log', Workstream.Value = summaryGallery.Selected.Workstream.Value) ?
2 REPLIES 2
Mike8
Level 10

Re: Filter gallery based on another gallery giving invalid argument type error

Hello, Can you try Filter('Critical Decision Log', Workstream.Value = summaryGallery.Selected.Workstream.Value) ?
bhstepp
Level: Powered On

Re: Filter gallery based on another gallery giving invalid argument type error

Thanks - that helped. I'm not getting the invalid argument type error now, but I am getting a delegation warning at the first .Value Filter('Critical Decision Log', Workstream.Value = summaryGallery.Selected.Workstream.Value) I don't have much data in the list yet so it appears to be working, but I'm worried about issues if the list grows too large. Thoughts?

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 175 members 4,271 guests
Please welcome our newest community members: