![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Howard Schlossberg<howard (AT) nospam (DOT) fmprosolutions.com> wrote: But another way would be to use the List() function to get all ParentID's from the child table. Then use a valuecount() of UniqueValues() to determine the number of unique parent IDs. Great. It's like Helpful Harry's approach, enriched with the list function that doesn't exist in v5.5 :-) |
#12
| |||
| |||
|
|
Helpful Harry wrote: Create a Relationship in the child table to group the related records. e.g. rel_SameParent match record in ChildTable with records in ChildTable when ParentKey = ChildTable::ParentKey Then you can create a Calculation Field which works out each record being 1/xth of the total number of same parent records. e.g. OneXth Calculation, Number Result, Unstored = 1 / Count(rel_SameParent::ParentKey) If you were to then create a Summary Field and Summary Report totalling these values, you would get a total of 1 for each different ParentKey sub-summary. Which also means to get the number of unique parent records you can simply summarise them all e.g. s_NumParentRecords Summary Total of OneXth I'm afraid that this method, too, works only if I have every record of the table in the found set, because the totalling depends on the found set, the count of the child records with the same parent, however, does not. |
)![]() |
| Thread Tools | |
| Display Modes | |
| |