Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Line count of filtered DataTable

(0) ShareShare
ReportReport
Posted on by 28

Hi all,

i use a DataTable with connection to a SQLDB. This DataTable can filtered about a Textinput. After a filtering i see 7 Lines. How can i counting this lines? 
A CountRows() provides me a count of ALL lines, not the 7 lines! 

Thanks...

Categories:
  • torsten156 Profile Picture
    28 on at
    Re: Line count of filtered DataTable

    Super, it works. 

    Thanks

     

  • Verified answer
    timl Profile Picture
    34,939 Super User 2025 Season 1 on at
    Re: Line count of filtered DataTable

    Hi @torsten156 

    To retrieve a count of the filtered results, you would need to call CountRows and pass the result of the Filter function.

     

    CountRows(Filter('[dbo].[YourTable]', Column=txtInput.Text))

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard