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) ?

View solution in original post

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) ?

View solution in original post

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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 98 members 5,192 guests
Please welcome our newest community members: