cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cooper01
Continued Contributor
Continued Contributor

No function signature error when filtering using "in"

I have a gallery which is showing a list of employees from a CDS entity (Employees). I want to be able to filter the list by last name or employee Id using "in" and by district using a drop down list (contains "Northwest", "Southeast", etc.). The filter looks like this right now

 

Filter(
    [@Employees],
    And(
        Or(TextInput_Search.Text in 'Last Name',TextInput_Search.Text in 'Employee Id'),
        District = Dropdown_Districts.Selected.Value
    )
)

 

If I remove the And and the or line filtering on the text input, the gallery works as expected so I'm pretty sure that's what's messing me up. 'Last Name' is a custom text field and 'Employee Id' is custom whole number field on the Employees entity.

The error I am getting is "The requested operation is invalid. Server Response: No function signature for the function with the name 'contains' matches the specified arguments. The function signatures considered are: contains(Edm.String Nullable=true, Edm.String Nullable=true)

I have tried googling the error but haven't been successful so far. I know "in" is delegable so I don't think it's that and it's an error not a delegation warning anyway...

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Cooper01 ,

Could you please share more details about the error message within your app?

Could you please share a bit more about the "District" column in your Employees Entity? Is it a Text type column?

 

Please consider modify your formula as below:

Filter(
       [@Employees],
        TextInput_Search.Text in 'Last Name' || TextInput_Search.Text in Text('Employee Id'),
        District = Dropdown_Districts.Selected.Value
)

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

 

Also please consider take a try with the following workaround:

Filter(
       [@Employees],
        StartsWith('Last Name', TextInput_Search.Text) ||  StartsWith(Text('Employee Id'), TextInput_Search.Text),
        District = Dropdown_Districts.Selected.Value
)

 

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.

View solution in original post

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @Cooper01 ,

Could you please share more details about the error message within your app?

Could you please share a bit more about the "District" column in your Employees Entity? Is it a Text type column?

 

Please consider modify your formula as below:

Filter(
       [@Employees],
        TextInput_Search.Text in 'Last Name' || TextInput_Search.Text in Text('Employee Id'),
        District = Dropdown_Districts.Selected.Value
)

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

 

Also please consider take a try with the following workaround:

Filter(
       [@Employees],
        StartsWith('Last Name', TextInput_Search.Text) ||  StartsWith(Text('Employee Id'), TextInput_Search.Text),
        District = Dropdown_Districts.Selected.Value
)

 

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

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.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

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.

Users online (1,781)