Counting from a collection and showing as a percentage

Resolved

I am having trouble with a widget I have been trying to build. I want to show how many times a word occurs (e.g. the word "Left") in a collection and show as a percentage of the total. I also only want the count to happen based on the last recorded date.

I have been trying everything from custom functions to filters and can't get it working. Each time I run a custom function it wigs out or doesn't show anything.

Any help or suggestions would be amazing.

10 replies