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?
Solved! Go to Solution.
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)
What is the expression for the Items property of the second dropdown (SelectMeetingType)?
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.
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?
You would need to use the "in" predicate rather than "=", https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-Filter-a-Gallery-using-a-Combo-Box/td... talks about this.
I don't think that "in" is delegable to SharePoint though, see https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview and https://docs.microsoft.com/en-us/connectors/sharepointonline/#power-apps-delegable-functions-and-ope...
User | Count |
---|---|
262 | |
110 | |
92 | |
54 | |
43 |