the only tutorial is readme on add-on page. i'm too lazy to write complete tutorial, but i'm ready to help you here.
i think you need the opposite to what you wrote. grouping fields must be <album artist>,<album>,<loved> and calculated field must be 'average count(<loved>/<url>)'. save 'average count' to custom tag (or assign virtual tag function id) only if <loved>='L'