Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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

  • CU01080302-0 Profile Picture
    10 on at
    Re: How to get counts based on the status?

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

  • SM1998 Profile Picture
    11 on at
    Re: How to get counts based on the status?

    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

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,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard