cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Filtering table from ComboBox

Hi,

 

I have done a fair bit of searching but I can't quite find the answer that will work. 

 

The end goal is that the user can filter the table but selecting dates up to 10 days in the future. 

 

I have a ComboBox that displays 10 dates ( Today(), Today()+1, Today()+2.... etc) 

 

In the filter I am getting an error with the '=' sign when trying to filter on the dates vs the combobox.selectedvalues. 

 

SortByColumns(
    Filter('SharePointList', Assigned=false && Region=ChooseRegion.Selected.Value && 'Call back date calc'=ComboBox4.SelectedItems),
    "Callbackdate", Ascending
)

The error is on the final '=' between 'Call back date calc' and ComboBox4.SelectedItems

 

i am getting "Invalid Argument Type

 

any help would be great!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Since ComboBox4.SelectedItems is a list of values you can't use the "=" operator to compare against it. Try replacing the "=" with "in".

 

Example:

SortByColumns(
    Filter('SharePointList', Assigned=false && Region=ChooseRegion.Selected.Value && 'Call back date calc' in ComboBox4.SelectedItems),
    "Callbackdate", Ascending
)

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Super User
Super User

Since ComboBox4.SelectedItems is a list of values you can't use the "=" operator to compare against it. Try replacing the "=" with "in".

 

Example:

SortByColumns(
    Filter('SharePointList', Assigned=false && Region=ChooseRegion.Selected.Value && 'Call back date calc' in ComboBox4.SelectedItems),
    "Callbackdate", Ascending
)

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (39,257)