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 / Gallery to Customer Cards
Power Apps
Answered

Gallery to Customer Cards

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I am working on an app that has 2 combo dropdowns where the selection in these drop-downs will show its results in a vertical gallery. Is there any way where we can create cards, where that show the results in individual cards instead of a gallery?

 

Currently, we have results of 3 columns selected in gallery

 

Cards Example 

 

Hit_23_1-1705490879118.png

 

Thank you

 

Categories:
I have the same question (0)
  • Verified answer
    eikmeier Profile Picture
    26 on at

    You can still use a gallery, but you will adjust its properties to make it look like individual cards. Set the gallery’s layout to be a flexible height gallery. This allows each item (or card) in the gallery to have its own size.

    For each item in the gallery, you can customize its appearance to look like a card. This involves:
    Using a Vertical Container as your main card Container, and HOrizontal containers inside this first container to adjust elements horizonttaly. Use the shadow effect on the Container, that will make your card more beautifull. 
    Adjust padding and margins.

    Inside each gallery item, you can place labels or other controls that will display the data. Bind these controls to the respective columns of your data source.


    Write a formula for the gallery’s Items property that filters the data based on the selections made in the dropdowns. This will dynamically update the cards displayed in the gallery based on the dropdown selections.

    EXample: 

    Filter(YourDataSource, Dropdown1.Selected.Value = YourColumn1, Dropdown2.Selected.Value = YourColumn2) Or

    Filter(YourDataSource, Dropdown1.Selected.Value in YourColumn1, Dropdown2.Selected.Value = YourColumn2) 

     

     

    And also you can leverage WrapCount to put as many cards horizontally as you wish to fit on your screen. 




  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @Anonymous 

     

    See below a quick mock up of how this can be achieved:

     

    AmDev_0-1705493870439.png

     

    In the interest of speed, I have done this quite roughly with just one standard container and then manually positioned the nested controls, but as @eikmeier says, you can use a parent vertical container and then nested containers to more accurately align the controls. Note also some info here is bound to a hardcoded table (to mimic you datasource), but some is just hard coded like the New label and the overlapping horizontal Gallery for the images and I havent showed you how to deal with capping the images and showing the +#  of images over those displayed. For starters, to cap them you would just use FirstN function in the pic gallery 'Items' Property (i.e. 'FirstN(ThisItem.PeopleColumn, 3)' )

     

    See attached .msapp file also, which may help you on your way.

     

    Hope this is helpful

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @AmDev  THank you so much!!. This helped me a lot to achieve the requriement.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 294 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 169

Last 30 days Overall leaderboard