I was afraid you were going to ask that.
It is a bit in depth.
Custom Library Field:
Name: #Album
Display: #Album
Display Plural: #Albums
Flags: Audio
Calculated Data (Expression): load(v_numalbums_[Artist])
This will load a saved variable from a math expression at display time.
In theaterview I have a Secondary Roller called Audio, and a Library Item call Albums, and a few Library Items under albums(All Albums, His Res, HD Surround, Album Series, Boxsets, Multiple Artist...). Under "Set rules for file display" for
Albums I have the following:
Rule 1)Media Type - Is - Audio
Rule 2)Custom -
[=1save(0,v_numalbums_[artist])]=1
(this loads a zero for album count)
Rule 3)Custom -
[=1(compare([track #].[disc #], <=, 1.1),save(math(compare([track #].[disc #], <=, 1.1) + load(v_numalbums_[artist])), v_numalbums_[artist]))]=1
(This will load the number of albums based on disc number and track number. It allows each album of a multi disc set to be counted as well as single discs.)
In the Library Item
All Albums nested under the secondary roller
Albums In the Details part where you set what you want to display I have:
[Artist] (with the grouping checked with a Grouping size of 1)
Expression: (Expression to group by) [Artist] and (Expression to display:) (2 lines)
[Artist,1]
[#Album, 1] if(compare([#Album, 1], >, 1), Albums, Album)
and in "Set rules for file display" I Have: Album Type - is - Single Artist complete
This will give you
Pink Floyd
7 Albums
Please see this post more more background...
http://yabb.jriver.com/interact/index.php?topic=85166.0Ken