How about a distinct count measure on Document Number?
http://msdn.microsoft.com/library/de.../en-us/olapdma
d/agmeasures_0m0j.asp
If a measure's Aggregate Function property value is Distinct Count, the
measure value for a cube cell is calculated by adding the number of
unique values in the measure's source column from only the rows for the
combination of members that defines the cell and the descendants of
those members.
...
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!