Hi all,
I have attached a DB with what I'm trying to achieve. Its a table, I want to find the % using just the one MS Access query. Not sure it can be done?
The trick is only summing the data for particular AbsentReason when equals only "Late" or "None Given". Also Lesson 1 is only 10 mins and the rest are 50 mins.
OTUPUT would be
John = ( (Count of Lessons * 10 or 50) - (Sum of Absent Mins only "Late" or "None Given") ) / (Count of Lessons * 10 or 50) = (520 - 150) / 520 = 71%
Mary = ( (Count of Lessons * 10 or 50) - (Sum of Absent Mins only "Late" or "None Given") ) / (Count of Lessons * 10 or 50) = (520 - 7) / 520 = 99%
Thanks Q