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!