INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Adding custom calculated field for 'Album Rating'  (Read 1990 times)

Dorsai

  • Recent member
  • *
  • Posts: 46
Adding custom calculated field for 'Album Rating'
« on: July 31, 2016, 10:04:55 am »

I am trying to create a custom field that applies at the album level called "Album Rating". It should simply be the total number of stars divided by the number of tracks returned as a decimal. I've played with the expression fields and functions for a while but, being old and senile, I can't seem to figure out how to do it.

Any help will be *deeply* appreciated.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Adding custom calculated field for 'Album Rating'
« Reply #1 on: July 31, 2016, 10:45:17 am »

To do this, you need global variables.  They are kind of unusual to work with, but they work.  Here's a thread with some details on how mark_h did his:

https://yabb.jriver.com/interact/index.php?topic=72049.0

Brian.
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Adding custom calculated field for 'Album Rating'
« Reply #2 on: July 31, 2016, 08:52:09 pm »

exactly what you want can be found here

http://yabb.jriver.com/interact/index.php?topic=100596.0

change the [points] references to [rating]
Logged
Pages: [1]   Go Up