Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Newbie : Invalid Argument Type

Hi, I'm new to PowerApps. 

I'm trying to pass an argument from 1 screen to another and I follow the steps listed on this website:


I'm stuck when I'm trying to pass value to the target screen. The red error will appear as soon as I type the equal key (=).

The code that I typed in was : 

First(Filter(SignOutInLog, EquipmentID=SelectedID)



I've been trying to fix this for 2 days and tried everything that I read from the internet but still failed.

Please help!


Dual Super User II
Dual Super User II

Hi @Hasani 


what type of column is equipment

If it is a choice or lookup then use Equipment.Id = SelectedID


Also, what is the data type of selectedID and Equipment 


1 more thing, never use First(Filter since

Use Lookup instead


Lookup(datasource, condition)

It is a more performant operation if only looking to fetch 1 record



Reza Dorrani


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly



Community Support
Community Support

Hi @Hasani ,

Could you please share a bit more about the error message with your formula?

Could you please show more details about the Equipment field in your 'SignOutInLog' data source?

Is the 'SignOutInLog' data source a SP list? And the Equipment field is a Choice or LookUp field in it?

Further, how do you set up the SelectedID variable in your app? Could you please share a bit more about the formula?


I have made a test on my side, and don't have the issue that you mentioned. When you type the filter condition within the Filter function, you must make sure the data type of both side of the "=" are in same data type.


If you set up your SelectedID variable using Navigate(scrnView, ScreenTransition.Fade,{selectedId: Gallery1.Selected.ID}) formula  , please modify your formula within the Item property of the Display form or Edit form to following:

First(Filter(SignOutInLog, ID = SelectedID))

In other words, if you set up the SelectedID variable using ColumnA value (Navigate(scrnView, ScreenTransition.Fade,{selectedId: Gallery1.Selected.ColumnA}) from your data source, within the Filter formula you provided, you should still use the ColumnA as Filter column:

First(Filter(SignOutInLog, ColumnA = SelectedID))

Please take a try with above solution, check if the issue is solved.


Best regards,

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

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (36,963)