web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard