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 / Can't Select() a Galle...
Power Apps
Answered

Can't Select() a Gallery Row/Column within Component

(0) ShareShare
ReportReport
Posted on by 3

I have a Gallery inside a Component, acting as a tab bar. Next to the Gallery, I have a Next button that I want to select a specific index of the Gallery. Normally I can use `Select(MyGallery, 1)` to do this just fine. However, inside of a Component, despite it showing me in a tooltip that I can add a row/column parameter, it gives me the error "The function 'Select' has some invalid arguments", but no more detail on what it doesn't like.

 

 

 

How can I do this inside of a Component?

1.png
2.png
Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @awmjeff :

    Do you want to use Select() in the component to specify the selection of a gallery?

    If so,I'm afriaid that is not available.If you need this feature,I suggest you post yout ideal in this forum:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas 

    Although select() can not meet your needs, there is another way to achieve it:

    The key is to set the default property of the gallery

    I've made a test for your reference:  

    In a component

    1\Add a gallery (Gallery8) and set it's 

    Items

    CustomGallerySample /*CustomGallerySample is my data source*/

    Default

    theitem /*theitem is my custom variable*/

    2\Add a button control and set it's OnSelect property to

    Set(theitem,Last(FirstN(CustomGallerySample,3)));/*I suppose to specify the third record in the data source*/
    Reset(Gallery8)

    88.gif

    Best Regards,

    Bof

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard