cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mrQ
Helper V
Helper V

Search in nested table

Dear community

 

In my table "integration" there is a nested table (not record!) called "managersNested". In my gallery, I have added the following as for the Items property:

 

SortByColumns(
    Filter(
        AddColumns(
            integration,
            "managersNested",
            Filter(
                managers,
                Title = integration[@Title],
                (role = "390" || role = "420" || role = "932")
            )
        ),
        StartsWith(Title, textinput.Text) || 
        StartsWith(Street, textinput.Text) || 
        StartsWith(Zip, textinput.Text) || 
        StartsWith(Place, textinput.Text) 
    ),
    "Title"
)

 

 

I would now like to also be able to return entries in mentioned gallery above ("integration" data source) when searching for managersNested.UserId and was wondering how you would approach this?

 

Simply adding another "StartsWith(managersNested.UserId, trextinput.Text)" doesn't work, unfortunately 😞

 

Thanks in advance

12 REPLIES 12
mrQ
Helper V
Helper V

hi @v-jefferni 

 

That looks already much better and it seems to work, thank you! However, it is only searching for exact matches at the moment. E.g. if I only type in half of the email, it wouldn't return any results.

 

Is there a fix for this?

 

I also realized I can get rid of the second AddColumns now.

v-jefferni
Community Support
Community Support

Hi @mrQ ,

 

With search text in Text Input, the answer is no. I would recommend you to use a Combo box which contains all user/manager emails to select from and filter the collection on the selected user email. I know this complicates the search functionality, but it's the only way to go if you don't want an exact match search in nested tables.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

 

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @v-jefferni 

 

I understand.

Thank you so much for your help!

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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,230)