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

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard