I have a dynamic subset which filters the elements (Centre) by attributes (attribute IsCentreClosed <> Y).
What I want to do is, in a report enable a user to select a centre from the dimension using the filtered subset, and then display the children of that centre (if the centre is a consol) using the filtered subset.
In the image below, there's a SUBNM attached to where it displays "Business Markets" (Cell D10), and the rest of the report is driven by ELCOMPs.
(numbers randomized and centre names changed)
However, since ELCOMP is based on the Dimension and not the Subset, centre "7573 Project Annihilate" which is closed appears on the report.
What I am now going to do is:
- 1. Write a VBA Function which gets the Index number of the SUBNM in cell D10
2. Use SUBNM functions to generate the childrens' reports by simply incrementing the index number
3. Stop generating childrens' reports when the level (ELLEV) of the element returned by the SUBNM function is higher than the level of the element in cell D10
Would appreciate any comments and suggestions, before I embark on this report.
Many thanks
Kaveenga