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 / put a filter on a data...
Power Apps
Answered

put a filter on a database (excel source)

(0) ShareShare
ReportReport
Posted on by 23

hello, I have an excel file of 250 records, I would like to put a filter on several columns but I cannot find the right syntax
the first filter carries the "Chauffeur" column

 

thanks in advance

Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Vincent_72 ,

     

    You can try below code if it helps. 

    Filter (Saisies_courses; StartsWith(Chauffeur,TextInput2.Text))

     

    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.

  • Vincent_72 Profile Picture
    23 on at

    thank you, but that doesn't change a thing

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Vincent_72 ,

     

    Could you please confirm the column type ?  

    Is it by any chances choice field ?

    Chauffeur

     

     

    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.

     

  • Vincent_72 Profile Picture
    23 on at

    in the excel table, no it is a free text field; on the other hand if I connect the table with share point, under sharepoint, yes it is a choice field

    Basically the excel file is a degraded solution, I wanted to manage everything from share point

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Vincent_72 ,

     

    IF you have sharepoint data connected to your Powerapps please try below code. If error please share the error message as well. 

    Filter (Saisies_courses; StartsWith(Chauffeur.Value,TextInput2.Text))

     

     

    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.

  • Vincent_72 Profile Picture
    23 on at
    247 / 5000
     

    Résultats de traduction

    under sharepoint, the table is simply called "Courses"; and the column "Chauffeur" is fed by a choice and I always have the same error message
    I have to put another filter in place on the date which is fed by a date picker
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Vincent_72 ,

     

    May be the issue is with the comma. Please try below code. 

    Filter (Saisies_courses; StartsWith(Chauffeur.Value;TextInput2.Text))

     

    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.

  • Vincent_72 Profile Picture
    23 on at

    there is a message maybe more precise
    TextInput2 = There is an error in this formula.
    Try to revise the formula and
    rerun.
    Data Type: Control

    I forgot to specify, I have an AZERTY keyboard

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Vincent_72 ,

     

    The below formula works in my case if I put it in a items property. But it seems you are adding it in text field. 

    I'll update the formula try if it works in your case. 

     

    Worked in my case : Filter(DataSource,StartsWith(ColumnName,TextInputControlName.Text)) 
    // - Results in many records best suited in case of gallery or items 
    
    
    
    
    First(Filter (Saisies_courses; StartsWith(Chauffeur.Value;TextInput2.Text))).columnName 
    //- Results in one record best suited in case of textfields 

     

    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.

  • Vincent_72 Profile Picture
    23 on at

    when I add the field in which I want to put the filter, it is the system which puts it in text; I do not have the hand to put it in property Iems; or else I don't understand your answer

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard