In CourseMill's Advanced Reporting, not only can you drag and drop fields/columns from the database into your report, but you can also create 'Calculated Columns' which can either be a Template field or a Script field. A Script Field must be syntactically correct JavaScript.
I have attached a document on how to create calculated columns using 'Script'. It's a great way to jazz up your reports!