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 / Filter by Number in 2 ...
Power Apps
Answered

Filter by Number in 2 columns

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I am trying to filter my 1200 records from a Sharepoint list based on a value in 2 numeric columns.

This is what I have tried:

Filter('Contact Sheet',(PLZ_x0020_Start>=Value(TextSearchBox1.Text) && PLZ_x0020_Ende<=Value(TextSearchBox1.Text)) )

 

At current it filters if [PLZ Start] and [PLZ Ende] both matches the TextSearchBox1.

It seems to ignore the >=  and <= operators.

No errors or warnings for the syntax.

Thanks for any hint!

Categories:
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    I believe your operators are swapped - you want the items in the list where the start is less than or equal to the value, and the end is greater than or equal to the value (i.e., the value is in the inclusive start/end range). Try replacing the formula with the following, and it should work:

    Filter(
     'Contact Sheet',
     PLZ_x0020_Start <= Value(TextSearchBox1.Text) && PLZ_x0020_Ende >= Value(TextSearchBox1.Text) )
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks Carlos,

    I didn't see the most obvious reason.

  • tianaranjo Profile Picture
    497 on at

    Greetings - I am trying to do something similar.  Only I want to filter one column based on a range.  The column is a number column.  I have modified your formula to fit me column names, however, I get errors.  Can you advise?

    SortByColumns(Filter(colDateSelectRecords,  MP >= Value(TextInput2.Text) && MP >= Value(TextInput1.Text), "ID", Descending)

     

     

  • tianaranjo Profile Picture
    497 on at

    Disregard; I was able to resolve.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard