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 / Show items in gallery ...
Power Apps
Answered

Show items in gallery according to filter

(0) ShareShare
ReportReport
Posted on by 32

I currently show these three values in my gallery:
Code (ThisItem.Code)
Product name (ThisItem.Product name)
Price (ThisItem.Price1)

 

But I have three price lists:
Price1
Price2
Price3

 

I would like a dropdown filter to be able to select one of the three price lists and the list that I am selecting will be displayed in the gallery, I have this formula but it does not work:
ThisItem. Filter1.Selected.Value

 

In my mind I have:
ThisItem. {FILTER SELECTION}

 

Thanks!

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Jhovanny 

    In general, a Gallery should have only ONE datasource for it.  You should avoid switching datasources in the Items property of the Gallery.

    The only times it is somewhat acceptable is if the datasource have the EXACT same schema.  Or, you utilize data shaping to shape all your sources in the Items property be have only common columns between them all.

     

    Can you elaborate a little more on how this is perceived to work and what it is that you want to show in the Gallery itself?  I am confused if you are trying to show prices in the Gallery based on a Dropdown in the gallery or outside of the gallery - can you expand on that?

  • Jhovanny Profile Picture
    32 on at

    Hi @RandyHayes 

    It is the same data source, I'm talking about the same table that has three different price columns.

     

    TABLE: APPDATA

    Code

    Product name

    Price1

    Price2

    Price3

    7020534

    NAME1

    500

    500

    390

    7020523

    NAME2

    550

    700

    650

    7021286

    NAM3

    600

    900

    420

    7021247

    NAME4

    300

    450

    280

     

    The Dropdown menu is outside the gallery.

    Jhovanny_0-1640189114815.png

    Thanks!

     

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Jhovanny 

    Ah, very good.  Then set your Dropdown Items property to: 

       ["Price1", "Price2", "Price3"]

    Then for your price label in the gallery, set the Text property to:

    Switch(yourDropdownName.Selected.Value,
     "Price1", Price1,
     "Price2", Price2,
     "Price3", Price3
    )

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