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 / modern table .selected...
Power Apps
Suggested Answer

modern table .selected not working

(0) ShareShare
ReportReport
Posted on by 353

I have a modern table populated with about 800 rows.

When a user selects a row, I want it it to populate a variable, so I can use it in a form.

this does not seem to work? what am I doing wrong? thanks!

 

    Set(
        varselected,
Table1
.Selected.ID
        );

I've also tried 
 
Table1.Selected.ID
 
Categories:
I have the same question (0)
  • Suggested answer
    Fredrik_A Profile Picture
    3,644 Super User 2026 Season 1 on at
    Hello,
     
    After scrolling past the first set of rows there might be a issue using "Selected" in a modern table. 
     
    What you can try is setting the Reflow behaviour to "List Only" and see if that helps.
     
    You can also implement pagination and see if that helps:
     
    LastN(FirstN(YOURDATASOURCE_HERE, varPaginationIndex * 25), 25)
    Then just initialize varPaginationIndex in the onvisible of your screen or onstart and set the variable to new values using navigation arrows:
     
    Set(varPaginationIndex, varPaginationIndex + 1)
     
    If my response solved your issue, please mark it as ✅ Accepted Answer and give it a like.
  • stampcoin Profile Picture
    5,171 Super User 2026 Season 1 on at
    You can try to set Table1's OnSelect=
    Set(
            varselected,
    Table1.Selected.ID
            );
     
    Or Add a Label, and set it Text=
    Table1.Selected.ID
     
    Hide the Label, and use Label1.Text as variable ( not set to another variable) for example.
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard