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 / Calculate the percenta...
Power Apps
Unanswered

Calculate the percentage of days less than or equal to 30

(0) ShareShare
ReportReport
Posted on by 11

I am creating an app and I want to display the metric of what % of non-conformances are closed on time. I have a calculated column 'Days Open', the days between 'Date Open' and 'Date Closed'. I used this column to show the metric for the average # of days an NC was open, but I am not having any luck with getting a percentage. Based on searches, I have tried using variations of 

Percent = If( Sum( CPARIndex.'Days Open' IsBlank() = False ) > 0, // Check for empty list

Round( ( Sum(If(CPARIndex.'Days Open' <= 30, 1, 0)) / Sum( CPARIndex.'Days Open' IsBlank() = False ) ) * 100, 2 // Round to two decimal places (optional) ), 0 // Display 0% if the list is empty )

 

Unfortunately, it doesn't seem to be accepting any anything I put after the list name. Any help would be much appreciated!

Categories:
I have the same question (0)
  • Mitanshu Profile Picture
    1,650 Moderator on at
    PercentageLessThan30Days = CountIf( data_source, DaysOpenColumn < 30 ) / CountRows(data_source) * 100 

     

    Can you try above?

     

    Reference: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-table-counts

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.

     

     

  • CircusFlea Profile Picture
    11 on at

    That did not seem to work. I am not worried about the delegation warning as we will not be hitting that limit

    CircusFlea_0-1710171477462.png

    CircusFlea_1-1710171497999.png

    CircusFlea_2-1710171609155.png

     

  • BhaskarDhone Profile Picture
    1,392 Super User 2025 Season 2 on at
    Percent = Round((CountIf(NCIndex, 'Days Open' <= 30 && 'Date Closed' <> Blank()) / CountRows(NCIndex)) * 100, 2)

     

    try this

  • CircusFlea Profile Picture
    11 on at

    I am not getting a calculation to show up, although this is the first time it has actually recognized my column names 

    CircusFlea_0-1710171834372.png

     

     

     

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard