List
In spreadsheet and list formulas, you can use the List property to reference properties of report objects.
You can also use the List property on the Data Area tab of the Client List Designer to filter the output of client lists.
Example: properties of report objects
These formulas return the unique name of the first element of a list displayed in a report object:
=ReportObjects.[report_object_name].List.Text
=ReportObjects.[report_object_name].Text
These formulas return the caption of the first element of a list displayed in a report object:
=ReportObjects.[report_object_name].List.Alias
=ReportObjects.[report_object_name].Alias
These properties can also be used with .Listg properties can be used with List: Attribute, Attributes 1-3, Set, StructureSet, ListResult, Name.
Example: List in the Client List Designer
You can use the .List property to filter one client list displayed in a list view by a set of members of another list. This is typically used for zero suppression.
In this example two client lists, Region and Period, are in overlapping hyperblocks in cells D5 and C6. The shared data cell of the hyperblocks (D6) contains this formula:
=ROC("Best_Practices_Templates","ANALYSIS","[CHANNEL].[All Channels]","[MEASURE].[Gross
Margin]","[POS].[All Pos]","[PRODUCT].[All Tires]",D5,C6,"[VALTYPE].[Variance]")
Jan 2011 | Feb 2011 | Mar 2011 | |
---|---|---|---|
Alabama | 0 | 0 | 0 |
Alaska | 0 | 8909 | 8624 |
Arizona | 0 | 0 | 0 |
Arkansas | 0 | 17160 | 1135 |
To suppress the rows which contain only zero values:
- Select the Region hyperblock and open the Client List Designer.
- Click the Data Area tab.
- Select
The Data Area grid is populated.
.
- In the Elements column, click the browse button of the Period dimension.
The Select Elements dialog is displayed.
- Click the Variables tab and expand Global lists.
- Double-click the Period list.
The right-hand pane displays
=GlobalLists.Period.Text
- Click OK.
- Select
The Preview pane in the Client List Designer displays no results. This is because
=GlobalLists.Period.Text
returns only the first element of a list. In this example, the first element of the Period list (Jan 2011) contains only zero values - and they are suppressed. - In the Select Elements dialog change .Text to .List:
=GlobalLists.Period.List
.The Preview pane displays Alaska and Arkansas and the report displays:
Jan 2011 | Feb 2011 | Mar 2011 | |
---|---|---|---|
Alaska | 0 | 8909 | 8624 |
Arkansas | 0 | 17160 | 1135 |