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 / Need to check if recor...
Power Apps
Unanswered

Need to check if record is selected in DataTable

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone,

 

I need to be able to check whether there are no records currently selected within my datatable. I can't use the IsEmpty function because the datatable technically is populated, it's just that sometimes when I toggle on my Filter() function is run, no records are displayed, and I need to be able to detect this within my app.

 

Is this possible?

 

Thanks in advance.

Categories:
I have the same question (0)
  • wyotim Profile Picture
    2,545 on at

    Hey @Anonymous, have you tried:

     

    IsBlank(Datatable1)

     

     

    In doing some messing around with a datatable filter, this worked for me. You could also use a CountRows function on the Filter statement to check as well. 

     

    Feel free to let me know if that helps or needs more explanation!

     

    *edit for spelling error*

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

    Hi @Anonymous ,

    Do you want to check if there are no records selected within the Data Table?

     

    In default, the first record within the Data Table would be selected, there is no way or function supported to unselect the record from the Data Table.

    If you want to check if there are no records in your Data Table, I think the IsBlank() function could achieve your needs. Please consider take a try with the following formula (set the Text property of a Label to following😞

    If(
     IsBlank(DataTable1.Selected),
     "No records in Data Table",
     "Have records in Data Table"
    )

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard