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 OnSelcet Status...
Power Apps
Answered

Filter OnSelcet Status Value

(0) ShareShare
ReportReport
Posted on by 62

I have a status calculation on list of items in the power apps, which added with New, In-progress, On Hold and New request.

Currently it is working fine to calculating the value from SP list. I would like to add a filter when the user click on anyone of the status it should automatically filter the respective status items list in the Gallery,  Since, i am already using a filter formula in the Gallery along with that i want add the above filter option also. can some help me to how to add the formula in powerapps for my above requirement please.

 

kindly see the attachment for reference.

 

Thanks 

Sunil

Filter.JPG
Filter2.JPG
Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at
    Try this :
    1. Insert a combobox, in the items property, put ["New","In-progress","On Hold","New request"]
    2. Alternatively, if these are in a table in your sharepoint list ( New, In-progress, On Hold and New request) the put the TableName in the items property of the combobox
    3. Finally, expand your formula on the Gallery as follows:
    Filter('Your List Name',StartsWith(PartNumber,InputText.Text)&&Combobox.Selected.Value)

    If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @sunilkumar ,

    Do you want to filter the gallery items based on the selected status?

    If so, I suggest you use a variable to filter. The variable value will be changed based on which status you select.

    I've made a similar test for your reference:

    1)set the all request label's OnSelect:

     

    Set(var,"all")

     

    set the new label's OnSelect:

     

     

    Set(var,"New")

     

     

    set the in-process label's OnSelect:

     

     

    Set(var,"In-progress")

     

     

    set the completed label's OnSelect:

     

     

    Set(var,"Completed")

     

     

    set the on-hold label's OnSelect:

     

     

    Set(var,"On Hold")

     

     

    348.PNG2)set the gallery's Items:

     

    Filter('CMM Offline Program List',
     StartsWith(....,....),
     If(IsBlank(var)||var="all",true,Status.Value=var)
     )

     

    Then the gallery will filter based on the label that you choose.

     

     

    Best regards,

  • metrology Profile Picture
    2 on at

    i have applied as suggested but it't not working.

     

    see the formula in below 

     

    1. set all request label's OnSelect:

    Set(var,lblAllRequestCir)

    Set(var,lblNewRequestCir)

    Set(var,'lblin-progressCir')

    Set(var,lblCompletedCir)

    Set(var,lblOnHoldCir)

     

    2. gallery's Items::

    Filter('CMM Inspection Request Form', StartsWith(Part_x0020_Number, TextInput_PartNumber.Text));
    Filter('CMM Offline Program List',
    StartsWith(....,....),
    If(IsBlank(var)||var="lblAllRequestCir",true,Status.Value=var)
    ));

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @metrology ,

    I'm sorry that I left "" in my previous reply.

    Try this:

    1. set all request label's OnSelect:

    Set(var,"lblAllRequestCir")

    Set(var,"lblNewRequestCir")

    Set(var,"lblin-progressCir")

    Set(var,"lblCompletedCir")

    Set(var,"lblOnHoldCir")

     

    2.Could you describe more clearly about what are the two filter formulas used?

    You could only use one Filter formula in one gallery.

    For example, set gallery1's Items:

     

    Filter('CMM Offline Program List',
    StartsWith(Part_x0020_Number, TextInput_PartNumber.Text),
    If(IsBlank(var)||var="lblAllRequestCir",true,Status.Value=var)
    ))
    
    

    Could you tell what is this formula used for ?"Filter('CMM Inspection Request Form', StartsWith(Part_x0020_Number, TextInput_PartNumber.Text))"

     

     

     

    Best regards,

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @sunilkumar ,

    Do you have any other problems now?
    I want to know whether your problem has been solved.😀

    If it has been solved, could you mark my answer?

     

     

    Best regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 742

#2
Valantis Profile Picture

Valantis 474

#3
Haque Profile Picture

Haque 358

Last 30 days Overall leaderboard