web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Filters

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello good afternoon.

 

I hope you can help me I have two lists in sharepoint, one with users and another with the accessories data, the accessories list extracts information from the user list (email, name, location) by means of a lookup of the RID column of the list of accessories to know who has that accessory.

 

I have a nested filter that looks for the serial number and the control number of the accessory but I can't make it also filter by name or email, I hope you can help me, the error  is attached.

 

Formula:

Filter (Inventory, StartsWith ('Serialnumber', TextSearchBox1.Text), StartsWith (ControlNumber, TextSearchBox2.Text), StartsWith ('RID', TextSearchBox3.Text))

 

Regards

error.PNG
Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Updated to avoid Delegation warning

     

    With(
     {
     sData: Filter(
     Inventory,
     IsBlank(TextSearchBox1.Text) || StartsWith(
     Serialnumber,
     TextSearchBox1.Text
     )
     )
     },
     If(
     !IsBlank(TextSearchBox2.Text),
     Filter(
     sData,
     StartsWith(
     ControlNumber,
     TextSearchBox2.Text
     )
     ),
     If(
     !IsBlank(TextSearchBox3.Text),
     Filter(
     sData,
     StartsWith(
     'RID',
     TextSearchBox3.Text
     )
     ),
     sData
     )
     )
    )

     

    sData - Variable name

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hello Stalin
    I already tried but the same thing keeps happening when I try to place the email that is in the gallery and that does the search by RID where the user data is, it sends me an error (invalid argument) but if I replace it with a data from the inventory list if you search without problems.

    The data without searching the user's email and department if it shows them in the gallery but unlike the data that is extracted from the list directly from inventory are without quotes (ThisItem.Email.Value) I do not know if it has something related.

     

    Thank you so much

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    I spend quite a bit of time filtering the lookup but it seems you can filter but good for dropdown or combo box. Not for gallery filter.

     

    Another option is to use a button to filter the main list first and loop through the second list using a collection.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    To test this, create a new screen and have a button. On select of the button place this code

    ClearCollect(
     colTest1,
     Choices(IssueTracker.Event)
    );
    ClearCollect(
     colTest2,
     Filter(
     EventIItinerary,
     StartsWith(
     Title,
     TextSearchBox3.Text
     )
     )
    );
    ClearCollect(
     colTest3,
     Filter(
     Choices(IssueTracker.Event),
     Id in Filter(
     EventIItinerary,
     StartsWith(
     Title,
     TextSearchBox3.Text
     )
     ).ID
     )
    )

     

    IssueTracker - SP list 1

    EventIItinerary - SP list 2

    .Event - Lookup to List 2

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard