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 / Selected Items Gallery...
Power Apps
Answered

Selected Items Gallery in Label

(1) ShareShare
ReportReport
Posted on by 22

Hi everyone, hope you're all are well. 

I'm stuck on how to pass selected items from a gallery in a label? 

I want to display multiple items in one label with a ; between them, I tried using the concat function but I'm doing it incorrectly. Any help would be greatly appreciated. 

My formula in the Label:

Concat(Gallery28_2.Selected, name & " ; ")

 

Categories:
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @fdlsklfsdkk ,

     

    Gallery28_2.Selected - gives you the current selected item of gallery.

     

    If you want to select multiple items from gallery,  you have to save your selection to a collection, using OnSelect property something like this:

     

    Collect(mySelectedItemsFromGallery,ThisItem)

     

    and then set Label Text to:

    Concat(mySelectedItemsFromGallery, name &";")

     

    don't forget to use Clear(mySelectedItemsFromGallery) to erase all data from collection when leaving the screen (OnHidden property), when entering the screen (On Visible property) or anywhere you feel.

     

    Hope it helps !

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

    @fdlsklfsdkk 

    Are you attempting to have a label that shows all the selected items in a Gallery?  

    The first question would be - how are you "Selecting" items?  Normally for a Gallery, there is only one selection - Gallery.Selected

     

    If you have a label outside of the Gallery that you want to display certain values from all the Gallery, then you can use the following formula:

    Concat(yourGallery.AllItems, yourValue & ";")

     

    If you have something in the Gallery to determine "selection" (such as a checkbox) then you can filter the items by that checkbox.  For example:

    Concat(Filter(yourGallery.AllItems, checkbox.Value), yourValue & ";")

     

    I hope this is helpful for you.

     

  • Pilgrims Profile Picture
    13 on at

    Thanks for your solution, But its showing all values in label, i only want to see certain value like from 2nd record or from 3rd then what needs to modify in the formulae.

     

    Thanks in Advance!!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard