View Single Post
Old 02-19-2021, 04:32 AM   #333
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by capink View Post
The formulas action already has a "mean" function that should be able to handle things like this. You can combine it with from_search() function to get the desired result. See the help on formulas action for more.
That is a good solution. "from_search" and "for" work together well in this case. Get the list of categories of interest, loop through them searching for books, compute the mean, then construct the result.
chaley is offline   Reply With Quote