A former minister says a figure showing a rise in pupils at good or outstanding schools cannot be relied upon.