web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filtering gallery by a...
Power Apps
Answered

Filtering gallery by a specific status value

(0) ShareShare
ReportReport
Posted on by 67

Hello - I'm hoping someone can help me out here.  I working on an app and on one of the screens I want to show only requests that have been "submitted" by my client.  For example, if my client submits a request, the issue list defaults the status of the new request to "Request Submitted".  In Powerapps, I have created a new screen and connected my data source (Recruitment Tracker).  I'm designing the screen to look like cards for each submitted request.  I clicked insert, Gallery, Vertical then connected my data source.  Now I want to only show all of the requests that are in submitted status.  I'm sorry if this sounds confusing.  Can anyone help me???

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @heycanyouhelpme 

    Modify your Items property to filter as needed.

    Ex:

       Filter(yourDataSource, yourStatusColumn = "Request Submitted"

     

    If the Status column is a choice column, then:

       Filter(yourDataSource, yourStatusColumn.Value = "Request Submitted"

     

    I hope this is helpful for you.

  • heycanyouhelpme Profile Picture
    67 on at

    Hi @RandyHayes - Unfortunately that didn't help.  So from the blank screen, I clicked on Gallery then chose Vertical.  Next I connected my data source (Recruitment Tracker).  In the FX box it says 'Recruitment Tracker'.  Do I edit the fx box and add the formula you provided? for example, change 'Recruitment Tracker' to Filter('Recruitment Tracker',Status.Value='Request Submitted') 

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @heycanyouhelpme 

    What did you try then that didn't work??

     

    Yes, you should alter the Items property on the Gallery to:

        Filter('Recruitment Tracker',Status.Value='Request Submitted') 

     

    This assumes that your Status is a choices column and that you are using SharePoint.

  • heycanyouhelpme Profile Picture
    67 on at

    @RandyHayes that's what I have. It's not working. I'll keep digging around. thanks for your help.

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @heycanyouhelpme 

    Are you stating that when your formula is 'Recruitment Tracker', you get results, but when using the Filter formula, you get none?

     

    If so, the again, is this SharePoint?  And, is the Status column a Choice column?  And, do you have any errors showing in that formula when you enter it? 

  • heycanyouhelpme Profile Picture
    67 on at

    @RandyHayes 

    Yes, my data source is a sharepoint issue list and the status column is a choice column.  I get a red x on the gallery.  I clicked get details and it says Issue: incompatible types for comparison.  These types can't be compared: Text, Error.

     

    We can't evaluate your formula because the values being compared in the formula aren't the same type.

     

    How to fix

    You might need to convert the value to be the same type, such as converting a date string

  • heycanyouhelpme Profile Picture
    67 on at

    @RandyHayes none of the status options are available to select when creating the formula. 

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @heycanyouhelpme could you provide a screenshot which shows the app, the selected gallery and the formular for the items property?

  • heycanyouhelpme Profile Picture
    67 on at

    @PowerRanger 

    heycanyouhelpme_0-1644597493424.jpeg

    heycanyouhelpme_1-1644597533139.jpeg

     

    heycanyouhelpme_2-1644597564502.jpeg

     

     

  • heycanyouhelpme Profile Picture
    67 on at

    @PowerRanger  here's a copy of my column setting

     

    heycanyouhelpme_3-1644597749869.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard