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 / Values selection based...
Power Apps
Unanswered

Values selection based on input

(0) ShareShare
ReportReport
Posted on by 56

Hello Gents,

i have Sharepointlist called Products to hold Products details and one of its columns name maxStore (to sore the maximum capacity for each Device) . and i have a textbox1 which enable the user to add the required Capacity . now i need to have a formula to match the required Capacity and filter all products' to get the matching capacity .

 

NOTE : that i may need to get more than Product to achieve the required capacity .

 

Example : the required capacity is 500 TB where the max Capacity per one of the product is 150TB and another one 50TB and so on , so i have about 250 product with various capacities' , so, i need the app to search within the list and do some calculations to filter out the matching products that can equal the required capacity . and display it in Gallery1 

please i need your support here 

Categories:
  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @abdelrahmanHon ,

    You have not included any code or field/list names here, but assuming you have a numeric field called Capacity and two Text Inputs called txtMin and txtMax, the Gallery Filter would be

    Filter(
     ListName,
     Capacity >= Value(txtMin.Text) && Capacity <= Value(txtMax.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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • abdelrahmanHon Profile Picture
    56 on at

    Thanks @WarrenBelz ,
    but the issue is not about the code , the issue is about the logic behind the idea itself , what i need to do is to create a function to recommend the combination of products that can meet the required capacity as below example by sorting the capacity Descending and then start compare the required capacity if it still less , then to add the another one and so on 

     

    Example : the required capacity is 500 TB and i have about 250 product with various capacities' , so, i need the app to recommend the combination of those products to match  required capacity . and display it in Gallery1 and drop all other products 

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

    Hi @abdelrahmanHon ,

    I am not sure how to respond other than to say all of that is certainly possible in Power Apps. The code structure example I posted is an example of how you would approach it.

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard