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 / Filter. gallery view b...
Power Apps
Unanswered

Filter. gallery view based on user selection

(0) ShareShare
ReportReport
Posted on by 203

Hi,

 I have a gallery where, based on the user selection, the filter will be different.  When the user selects the option that they want to see (from an icon), the variable is updated with the icon value and this will be used in the filter.  But I'm sure the format in my items field is completely wrong!

 

Screen Shot 2021-03-19 at 13.00.58.png

 

My formula is:

Sort(
If(GallView = "1st Approval (Awaiting Price)",
Filter('Travel Approval Process','Pre-approved'.Value = "Approved" And 'Travel Approval Process',Approved.Value = "Pending")
,
If(GallView = "2nd Approval (Awaiting Ticket Issuance)",
Filter('Travel Approval Process',Approved.Value = "Approved" And 'Travel Approval Process','Tickets Issued'.Value= "No")
,
'Travel Approval Process')
),
Created,Descending)

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,923 on at

    Try this modified formula. If you still have issues, clarify if you have two Galleries and also state the code for the variable:

     

    Sort(
    If(GallView = "1st Approval (Awaiting Price",
    Filter('Travel Approval Process','Pre-approved'.Value = "Approved" And Approved.Value = "Pending")
    ,
    If(GallView = "2nd Approval (Awaiting Ticket Issuance)",
    Filter('Travel Approval Process',Approved.Value = "Approved" And 'Tickets Issued'.Value= "No")
    ,
    'Travel Approval Process')
    ),
    Created,Descending)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • StephCORKING Profile Picture
    203 on at

    Hi @eka24 

     

    Brilliant!! 

     

    thank you so much 🙂

     

    Steph

  • SaiAnugrah_7860 Profile Picture
    2 on at

    I am building a reception management system . 

    When  the receptionist open the apps she needs to see the visitors of her current location . 
    For example : i have a list with receptionist email and their location .
    john@xyz.com --> India 
    Jack@xyz.com -- > USA 

    So when John logs in i want to see the data of only India and not USA similarly vice versa . Please suggest i also have other filter for the gallery that are working fine based on locations , name , time , date etc . i need to fit in my current scenario additional into my gallery items property .  Any suggestion would be highly appreciated .

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard