I've been fooling around with this a bit.....a lot....
EDIT: PROBABLY BEST TO SKIP THIS POST, AND GO TO THE NEXT ONE.The first thing to note is that I have been using a MUSIC Excel sheet to calculate these ratings via a laborious process of manually entering the star ratings and doing a calculation on that. I had forgotten that in my MUSIC Excel sheet I had weighted the ratings, which means 3* is worth 75, 4* is worth 90, and 5* is worth 100. That means that an album with one 5*, two 4*, and four 3* ( and whatever amount of **,*) will get an overall rating of
(100+90+90+75+75+75+75) / 7 =
82.9 NOT (100+80+80+60+60+60+60) / 7 = 71.4
Referring to the attached screenshot, which is for an album that has four 3*, two 4*, one 5* (like the example described above).
This is a Smartlist view that only displays >= 3* tracks.
Ignore the column "Rt".
"Rate.As.#" is a field I have created for each file, and its calculation is
ifelse(isequal([Rating], 3), 75, isequal([Rating], 4), 90, isequal([Rating], 5), 100)
which is to convert the 3,4,5 ratings to 75,90,100.
Then, I have created an expression column My Exp 1, which is:
ifelse(isequal([Rate.As.#], 75), itemcount(/[Album/] /[Rate.As.#/]),
isequal([Rate.As.#], 90), itemcount(/[Album/] /[Rate.As.#/]),
isequal([Rate.As.#], 100), itemcount(/[Album/] /[Rate.As.#/]))
and this counts the number of 75, 90, 100 tracks and display the total of THAT type for the album each time it finds one.
So,
in this case, for each 3* track it displays 4, for each 4* it displays 2, and for the 5* it displays 1.
Next, I have created an expression column My Exp 2, which is:
ifelse(isequal([Rate.As.#], 75), math(itemcount(/[Album/] /[Rate.As.#/]) * [Rate.As.#]),
isequal([Rate.As.#], 90), math(itemcount(/[Album/] /[Rate.As.#/]) * [Rate.As.#]),
isequal([Rate.As.#], 100), math(itemcount(/[Album/] /[Rate.As.#/]) * [Rate.As.#]))
and this gives me a total of , 100 (1 x 100) for the 5* tracks,
180 (2 x 90) for the 4* tracks, and
300 (4 x 75) for the 3* tracks.
BUT NOW I"M STUCK! What I want to do is add the 4+2+1 together to get 7 rated tracks of 3*,4*, or 5* and
add together the 300+180+100 to get 580 for their total rated values,
divide the 580 by 7 to get
82.9I don't know how I can do those additions (the division is fine once I have the additions done).