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 / How to make dynamic vi...
Power Apps
Answered

How to make dynamic view browse gallery (columns)?

(0) ShareShare
ReportReport
Posted on by 255

Hi, 

could anybody give me some advices, how could I make dynamic view browse gallery?

What I imagine under dynamic browse gallery (columns). I need to make sure that based on the user's application selection (which columns the user wants to see in the gallery), those columns will be displayed to him.


Example:
I have an SP list that contains column A, column B, column C, column D.
somewhere on the screen, will be e.g. ComboBox or Check box (I don't care). Based on the user's choice to view column A and column D. These columns will appear in the browse gallery.

Have anybody experience with this? Could give me any advice to solve this problem? 
Thanks.

Categories:
I have the same question (0)
  • fuzzy_fuzz Profile Picture
    229 on at

    In the label where you want to display the column info put a switch function.

     

    Switch(
     ComboBox1.Selected.Value;
     "Column1";
     ThisItem.Column1;
     "Column2";
     ThisItem.Column2
    )

     Note that depending on the type of column you might need to add a ThisItem.ColumnX.Value to access the data.

  • Verified answer
    EdViegas Profile Picture
    436 on at
    1. Add horizontal container
    2. Add 4 labels (A, B, C, D) as column headers inside the horizontal container. Enable flexible width to each one.
    3. Configure visible property to each label to show/hide as You prefer
    4. Add Gallery control below horizontal container
    5. Add Labels or other controls inside the Gallery to each column and configure X, Width and Visible matching with the corresponding Label in the Horizontal Container

    If You hide a Label in the horizontal container, the total width will be automatically occupied width visible elements and the controls inside the Gallery will positioned the same as the "columns" are. 

     

    To manage visibily, You can use a Combobox with property items: 

     

    Table(
     {Col: "A"},
     {Col: "B"},
     {Col: "C"},
     {Col: "D"}
    )

     

    Then, configure property visibility of each column header (labels inside the horizontal container) as:

     

    If(
     CountRows(
     Filter(
     ComboBox.SelectedItems,
     Col = Self.Text
     )
     ) > 0,
     true,
     false
    )
  • TomasG Profile Picture
    255 on at

    Thank you @EdViegas , this is the right way! 

  • Zaki89 Profile Picture
    13 on at

    Hi guys,

    tried proposed solution without success. Actually, I have more than 20 columns which needs to be in Combo box, based on user select, in t should be visible in the gallery. How to achieve that? thanks in advance

     

  • Zaki89 Profile Picture
    13 on at

    "4. Add Gallery control below horizontal container". Should it be inside of the horizontal container?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 84

#2
WarrenBelz Profile Picture

WarrenBelz 79 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 40 Super User 2026 Season 1

Last 30 days Overall leaderboard