cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Invalid Argument Type

I am using my data source as an excel and trying to filter my list using the below

Filter(Travel,Travel.Email=User().Email)

 

But it show invalid argument type, I have tried In and ExactIn but those does not work.

 

Any help would be appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
CarlosFigueira
Power Apps
Power Apps

Assuming that Email is a column in the Travel list, then you don't need to specify the list name the filter expression. This should work:

Filter(Travel, Email = User().Email)

The term 'Email' in the expression above is bound to each individual item in the Travel list that is being filtered.

 

When you say 'Travel.Email', you're referring to all of the values of the Email column in the Travel list, and that cannot be compared with a single value, which is why you see the error you have.

View solution in original post

4 REPLIES 4
hpkeong
Community Champion
Community Champion

Hi
Is Travel is already an Email?
I doubt you should put it as
Travel.Text = User().Email

Please verify.
Tq
hpkeong
CarlosFigueira
Power Apps
Power Apps

Assuming that Email is a column in the Travel list, then you don't need to specify the list name the filter expression. This should work:

Filter(Travel, Email = User().Email)

The term 'Email' in the expression above is bound to each individual item in the Travel list that is being filtered.

 

When you say 'Travel.Email', you're referring to all of the values of the Email column in the Travel list, and that cannot be compared with a single value, which is why you see the error you have.

Hi @CarlosFigueira

 

You are right Email=User().Email..I wrote wrongly as Travel and thanks for the correction,

 

TQ

hpkeong
Anonymous
Not applicable

Great, that works. Thank you 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,197)