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 / Count rows of a collec...
Power Apps
Answered

Count rows of a collection nested record table with condition

(0) ShareShare
ReportReport
Posted on by 18

Hello, I would like to count rows of the nested record table of my collection. I have a collection call "colPowerOffUpdate" and one of the column has a nested record table value called "Value". I want to count the rows that IsSubItemChecked = true and SubItemStatus = false. Below are the snapshot of my collection and nested record:

 

Collection:

newbieppdev_30_1-1694141545391.png

 

Nested record:

newbieppdev_30_2-1694141574237.png

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @newbieppdev_30 ,

     

    Please try:

     

    CountRows(Filter(Ungroup(colPowerOffUpdate,"Value"),IsSubItemChecked = true && SubItemStatus = false))

     

    Best Regards,

    Bof

  • BCBuizer Profile Picture
    22,654 Super User 2026 Season 1 on at

    Hi @newbieppdev_30 ,

     

    To make this work you first have to select the record int the collection and then apply a CountIf function to the Value column. In the below example I'm using a simple First function to perform the record selection:

     

    CountIf(
    	First(colPowerOffUpdate).Value,
    	IsSubItemChecked || !SubItemStatus
    )

     

    If you want to use this inside a gallery which has colPowerOffUpdate as a data source, use:

    CountIf(
    	ThisItem.Value,
    	IsSubItemChecked || !SubItemStatus
    )

      

  • newbieppdev_30 Profile Picture
    18 on at

    Hi @v-bofeng-msft, this worked! I've been stuck with this since yesterday. Thank you very much for your help! 😅

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 476

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard