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 Platform Community / Forums / Power Apps / It is not searching fo...
Power Apps
Unanswered

It is not searching for my value after entering data

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi 

 

I have a very large excel (400 thousand records) that is plugged into PowerApps
It wants to search for data in it using galleries
The search must be done in three ways Name, contract number and date from/to

Name searches without a problem
Contract number all the time is a problem - it finds nothing
The date is written using a number e.g. 29.11.2022 is 20221129 but I have a delegation. It searches only one and the same record

 

 

Gallery code:

Filter(Tabela1, StartsWith(Nazwisko, Trim(TextInput7_4.Text)) , StartsWith('Numer umowy',Trim( TextInput7_5.Text)), Value(Data_liczba)>= varDataFrom22 && Value(Data_liczba)<=varDataTo22)

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,007 Most Valuable Professional on at

    Hi @Anonymous ,

    Firstly, you are going to have a lot more issues than this with 400k records in Excel - I am surprised the Name search works. Excel and dates are a particular problem and you will never get this Delegable unless you store the data as Text and then turn your date into Text, which of course defeats the >= comparison. If you have SharePoint, I highly recommend you switch to it.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    When it searches by last name it finds me the right records. Add search by contract number problems appear. It does not search at all after entering the number.

    The date is represented as a number.

    What do you guys do in such a situation?
    Currently I have Excel download links sent to me.

  • WarrenBelz Profile Picture
    156,007 Most Valuable Professional on at

    Hi @Anonymous ,

    I am not sure if this helps you, but Excel as a Data Source, particularly as the list gets bigger presents challenges not seen in other data sources, due mainly to the fact it simply is not a Database. Until relatively recently, Excel had no Delegation ability at all, meaning you could not access anything beyond row 2,000, but improvements have given it some limited ability. Firstly covering your filter

    Filter(
     Tabela1, 
     StartsWith(
     Nazwisko, 
     Trim(TextInput7_4.Text)
     ) && 
     StartsWith(
     'Numer umowy',
     Trim(TextInput7_5.Text)
     ) &&
     Value(Data_liczba) >= varDataFrom22 && 
     Value(Data_liczba) <= varDataTo22
    )

    Providing the Last Name and Contract Number (I needed some Polish Google Translate here), are both text fields, you will probably find they will work on their own in isolation (you might try this as a test also leaving out the date), but Excel simply is not accepting Delegation on the combined filter (I hope I am wrong here).

    Now to your date field. You obviously have this stored as Text and Excel simply will not accept Delegation on turning all records into a number and then running through them all comparing it with your Variables. You may have some chance if you stored the value as a number, but again as a combined filter it may present issues.

    If you had all of this in SharePoint in two text fields and a date field, all of your filter would be Delegable and work as expected.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard