I have a function in PowerPivot Excel that gives me the average of the summed rows, and only counts if the sums are 100%.
The reason I do this: For each order coming in on one trailer (load), some of the items were not completely fulfilled, therefore "Is On Time" is set to 0 instead of 1 for each. I then average the whole load to see the total "on time" percentage.
Formula: On Time:=AVERAGEX(VALUES('table1'[Loads]), IF(AVERAGE[Is On Time]=1, 1, 0))
Here's an example of what the table in PowerPivot looks like, and what I'd like the output to eventually look like:
Is there a way to do the same but only count the total instead of averaging it all. I was hoping COUNTX but it doesn't work the same.