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 / How to get counts base...
Power Apps
Unanswered

How to get counts based on the status?

(0) ShareShare
ReportReport
Posted on by 10

Hello Awesome PowerApps community!

 

I am new in PowerApps. I am currently facing some difficulties for generating count. Please help me to solve.

 

I have a collection for loaned items with 3 columns just like this.

 

Loan NumberItem CodeStatus 
Loan1Item1Returnedso, Loan1(Returned)
Loan2Item2Returnedso, Loan2(Partially Returned)
Loan2Item3Not Return 
Loan3Item5Not Returnso, Loan3(Not Return)
Loan3Item6Not Return 
Loan4Item7Returned

so, Loan4(Returned)

 

All I want is to count for return loan, not return loan and partial return loan.

For Example,

Already Returned Loan : 2
Not Return Loan           : 1
Partial Return Loan       : 1

 

Are there a wonderful soul out there, who can help me solving this?

Have a great weekend

Best regards,

MS

Categories:
I have the same question (0)
  • SM1998 Profile Picture
    11 on at

    Hi @Mssg ,

    First of all you have to update Status field in your collection for Partial Returned Loan. Else how would you distinguish between Partial Return and Already Return. Or you can add another column for this. After that you can use the below function.

    1. To count Returned Loan:-

    CountRows(
     Filter(
     CollectionName,
     Status = "Returned"
     )
    )

     2. To count Not Return Loan:-

    CountRows(
     Filter(
     CollectionName,
     Status = "Not Return"
     )
    )

     3. To count Returned Loan:-

    CountRows(
     Filter(
     CollectionName,
     Status = "Partial Return"
     )
    )

     

    ------------------------------------------------------------------------------------

    If this solution helped with your problem please Accept it as a Solution so that it would be easy for others to find the solution.

     

    Best Regards,

    Siddharth

  • CU01080302-0 Profile Picture
    10 on at

    @SM1998 Thank you for the answer. But this is not what I wanted. Your solution will count based on the item status. I want to count based on both the loan number and status. Do you have any other solution? I really appreciate 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