It wasn't on my radar yet, but keep me on my toes!
Could you provide a little more information on the parameters and some examples?
Thanks.
Certainly, I'd be glad to.
GroupCountQuery would perform the same function as GroupCount, but in the same abstracted manner as GroupSummaryQuery.
Now currently GroupCount counts the number of unique values of a field for the current context. If you're looking at an album, GroupCount(Name) counts the number of different Names for all the members of that album.
GroupCountQuery is related, but slightly abstracted. Instead of counting what you're looking at, it counts things related to what you're looking at.
GroupCountQuery(field1, field2) counts a given field2 not for members of the current context, but for files that share a field1 with the current context.So for example, if you're looking at an individual track in the AC/DC album Back in Black, then:
GroupCount(Track #) returns 1 because there is only 1 track # value in the context. Likewise GroupCount(Name) would also return 1.
GroupCountQuery(Album, Track #) would give you the count of all tracks in the Back in Black album.
GroupCountQuery(Album, Name) would give you the count of all Names in the Back in Black album, probably the same result.
GroupCountQuery(Artist, Album) would give you the count of Albums by AC/DC.
The functionality can be extended if the first field can be combined like a string:
GroupCountQuery(Artist-Producer, Album) would give you the count of all AC/DC albums with the same producer as the current album.
Performing GroupCountQuery(Artist, Album) would report the exact same result if you were looking at ANY AC/DC track, because they all share the same Artist.
Thanks,
-Will