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 / Power Apps list box mu...
Power Apps
Unanswered

Power Apps list box multiple columns

(0) ShareShare
ReportReport
Posted on by 67

Hi Members,

I have a requirement in Power Apps where I want to add the Column names to a Power Apps list box and filter the gallery based on the selected value of the List box.

Scenario:

I have a SharePoint list as 'Power Platform Training' as shown below:

 

List box error.jpg

 

On my Power Apps screen, I have added a List box control and displayed the column names from a SharePoint list 

 

List box error1.jpg

 

Now, I added a Gallery control -> Set its Items property to:

 

Filter('Power Platform Training',ListBox1.Selected.Value)

 

 

List box error2.jpg

 

 

 

 

 

 

 

However, the gallery is filtering the column values randomly.

 

List box error3.jpg

 

But, I need to filter the gallery; when the user selects a Column name as Course, the gallery should give the values only from a course like "Power Apps," "Power Automate"..., etc

 

Can anyone please suggest how I can resolve this? Thanks in advance!

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Hemashree ,

     

    Do you want to show specific column of SP list according to ListBox1.Selected.Value?

    Please try this on Items of gallery:

    Switch(ListBox1.Selected.Value,
    "User ID",
    ShowColumns('Power Platform Training',"User ID"),
    "User Name",
    ShowColumns('Power Platform Training',"User Name"),
    "Course",
    ShowColumns('Power Platform Training',"Course")
    )

     

    Best regards,

    Rimmon

  • HM-22080408-0 Profile Picture
    67 on at

    Thank You @v-mengmli-msft 

    Now, my gallery is displaying only boolean values, as shown below:

     

    List box error4.jpg

     

    Please help me recover this @v-mengmli-msft. Thanks in advance!

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Hemashree ,

     

    Oh! I didn't notice that you want to show value of specific column in gallery.

    There is a simpler way for your reference:

    Items of Gallery:

    'Power Platform Training'

    Text of control in gallery:

    Switch(ListBox1.Selected.Value,
    "User ID",
    ThisItem.'User ID',
    "User Name",
    ThisItem.'User Name',
    "Course",
    ThisItem.Course.Value)

     

     

    Best regards,

    Rimmon

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Hemashree ,

     

    How is the situation now?

    If my answer helps you solve the problem, please accept it as a solution.

     

    Thanks in advance.

    Rimmon

  • simsek-serhat Profile Picture
    2 on at
    Hello
    Power apps to add the Training column I've opened on my SharePoint page
    how i would like to group and send for approval. thank you
    simsekserhat_0-1713724944779.png

     

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard