I have a table named attendance that has a column named Pre for marking Present as True and Absent as False.
i am using same column for marking both absent or present now the issue is i want to calculate percentage
i can create two virtual columns named TotalClasses and Attended i am also correctly getting values of both by using count.
but the problem is i want to apply percentage formula on these TotalClasses and Attended virtual columns to a third virtual column named Percentage but i am unable to think of any way to do this