cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Filter price column by min and max text fields?

I have a data table and am trying to filter the collection results based on two text fields, one for minimum price, and the other is maximum price. I cannot get this to work, and am sure it is probably something simple. I can get one or the other to work, but not both. Here is what I am trying. All help is greatly appreciated!

 

 

 

SortByColumns(
    Filter(
        collCars,
        Value(txtMin.Text) >= Price &&
        Value(txtMax.Text) <= Price),
             
        "Type",Ascending, "Price", Ascending)

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Re: Filter price column by min and max text fields?

Is Price a number type? Also I think the comparisons need to be switched.

 

SortByColumns(
    Filter(
        collCars,
        Price >= Value(txtMin.Text) &&
        Price <= Value(txtMax.Text)),
             
        "Type",Ascending, "Price", Ascending)

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Highlighted
Super User II
Super User II

Re: Filter price column by min and max text fields?

Is Price a number type? Also I think the comparisons need to be switched.

 

SortByColumns(
    Filter(
        collCars,
        Price >= Value(txtMin.Text) &&
        Price <= Value(txtMax.Text)),
             
        "Type",Ascending, "Price", Ascending)

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,905)