cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
taramoe
Advocate II
Advocate II

Invalid Argument Type using cascading filter

I have a list in SP called 'Meeting Types' and am trying to get a cascading filter to work between the second and third drop downs (picture below).

 

The second drop down is from the SP field called 'MeetingType' (text) with the drop down being named 'SelectMeetingType'.

The third drop down is the SP field called 'MeetingDateTimeText' (text) and I only want this field to display available date/times that belong to that 'MeetingType'.

 

This is my formula that is giving me the 'Invalid Argument Type' with a squiggly under the equals sign.

 

Distinct(Filter('Meeting Schedule',MeetingType=SelectMeetingType.Selected.Value),MeetingDateTimeText)

 

What am I missing? 

 

Meeting Schedule.png

1 ACCEPTED SOLUTION

Accepted Solutions
TimW
Helper II
Helper II

Distinct(Filter('Meeting Schedule',MeetingType=SelectMeetingType.Selected.Value),MeetingDateTimeText)

I just had the same problem, how about:

Distinct(Filter('Meeting Schedule',MeetingType.Value=SelectMeetingType.Selected.Value),MeetingDateTimeText)

View solution in original post

8 REPLIES 8
CarlosFigueira
Power Apps
Power Apps

What is the expression for the Items property of the second dropdown (SelectMeetingType)?

TimW
Helper II
Helper II

Distinct(Filter('Meeting Schedule',MeetingType=SelectMeetingType.Selected.Value),MeetingDateTimeText)

I just had the same problem, how about:

Distinct(Filter('Meeting Schedule',MeetingType.Value=SelectMeetingType.Selected.Value),MeetingDateTimeText)

That worked!  Been fighting with this for days and all it took was a simple ".Value".  Thank you!

PowerApps trying to be helpful with Sharepoint list shenanigans - it's going to take some getting used to 😄

Glad I could help.

MK2005
New Member

Need some help with this formula on why it's saying it's an invalid argument at the "=" between "'Trainer(s) Assigned'.Value" and "ComboBox1.Selected.Items.Value,"

 

Filter('CI Training Request Sandbox','Request Approval Status' <> "Denied", 'Trainer(s) Assigned'.Value = ComboBox1.SelectedItems.Value, Text('Assignment Start Date', DateTimeFormat.ShortDate) = Text(_dateSelected,DateTimeFormat.ShortDate))

 

Trainer(s) assigned is pulling from a Choice Field from a SharePoint List.  The ComboBox1 was set to

 and pull the distinct field properly.

 

If I remove that area of the formula, the gallery items populate correctly, albeit not filtered by the ComboBox selection.

 

How can I get this corrected to filter properly with it included?

 

Choices('CI Training Request Sandbox'.'Trainer(s) Assigned')

 

@MK2005I think maybe you are using a combo (which can do multiple select) when you wanted a dropdown?

Yes, that worked..is there a different way to do write it...had I used a Combo instead?

TimW
Helper II
Helper II

Helpful resources

Announcements
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,063)