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 PowerApps Galle...
Power Apps
Answered

Filter PowerApps Gallery using Dataverse Views from Dropdown

(0) ShareShare
ReportReport
Posted on by 112

Hi all,

 

I've looked around a bit for an answer to this one and can't find anything that matches my exact scenario, so I'm wondering if this is possible:

 

I have a Dataverse table called "Reservations" that I'm showing in a Gallery. I want to use a drop-down on the same page to filter the gallery based on predefined Dataverse views I've created.

 

I'm able to populate the combo box with the view names (Choices('Reservations (Views)'); however, when I try to use Filter() to compare them, I get a data type mismatch (View vs. ViewValue). 

 

 

Filter(Reservations, 'Reservations (Views)' = filterReservations.Selected.Value)

 

 

If I try to use the property selector on 'Reservations (Views)', I can only select existing views (i.e. "My Reservations). 

I know I could probably get around this by just writing a complex Filter statement, but I'd prefer that Dataverse does the work for me. Any ideas? 

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

    @ell10706 

    A Dataverse view is a filtered/sorted table.   If you use your selector on the right side of the screen and select the table in the top dropdown and the view in the dropdown below it, PowerApps will create the correct formula and show it in the window.  

    !1.png

     

     

     

    In the screenshot below, I used the view as the table to be filtered by the value in the dropdown.

    !1.png

  • ell10706 Profile Picture
    112 on at

    Thanks for the response, @Drrickryp. This is almost what I'm going for, with one difference. In your dropdown, you're filtering on a choice value in Dataverse. I want my dropdown to be a list of Dataverse views that I can select which will in turn change the filter applied to the gallery.

     

    i.e. "Active Reservations", "Expired Reservations", etc. 

     

    I know I can choose the "View" from the PowerApps menu, but I see no way to dynamically change the view this way:

    Filter(Reservations, 'Reservations (Views)'.[varViewName])

     

  • Verified answer
    ell10706 Profile Picture
    112 on at

    I was able to resolve this by changing Choices('Reservations (Views)') to Choices('Reservations (Views)').Value. Then, when using Filter(Reservations, filterReservations.Selected.Value), the data types match.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard