1. Modeling
  2. Build Models
  3. Lists and Roll-ups
  4. Numbered Lists
  5. Work with Numbered Lists

In this section, you can learn how to:

Create a Numbered List

Numbered lists have Codes and Properties, just like any other list.

When you create a numbered list, each item you add to it is automatically assigned a unique ID number. The system-generated ID number is totally independent of any Code manually assigned to the item.

Note: The hash character prefix to the name of a numbered list is a convention to allow numbered lists to be quickly identified — Naming Conventions provides further information.
Warning: Converting a normal hierarchical list to a numbered list will replace the names with numbers and remove all formulas apart from the auto-total. You cannot retrieve the original names unless you perform a system restore. If you need to preserve the existing names and use them as display names, see Preserve Names in a Numbered List.
  1. On the Model Settings tab, create a list.
  2. In Model Settings click General Lists.
  3. Select a list.
  4. Select the Numbered checkbox. A confirmation dialog displays, reminding you that you that numbered lists cannot contain totals.
  5. Click Cancel if you don't want to proceed with the conversion to a numbered list.
  6. Click OK to complete the conversion.
    If the list you converted contained items, the names of items will have been replaced with numbers and you can now insert items in a numbered list. If the list you converted was empty, you can now open the new numbered list and add items to it.

Configure a numbered list

  1. Select a numbered list in General Lists on the Model Settings tab.
  2. On the Configure tab, enter attributes for the numbered list.
  3. Click Apply.
  4. Select the Tree View tab and click Insert. An Insert dialog displays — you can add between 1 and 1,000 items
  5. Click OK. The items are added to the numbered list.

Set up Display Names for Numbered Lists

Although items in a numbered list are assigned a unique number, they can also have a display name to make identification of the item easier. Names for each item can be displayed by adding a Property to the list and then designating that list property as the Display Name Text

You can only use a Text or List formatted property as the display name property for a numbered list. If you try to use any other formatting type, a message will display:
  • If you use a Text-formatted list property, enter the text to display as the name for each item.
  • If you use a Text-formatted list property, you can apply a formula to the property using functions that yield text results. This means you can concatenate the text from line items and other property values to derive a composite name that will display for each item.
  • If you use a List-formatted list property, you can select property values to display as the name for each item.

Here, you can learn how to:

Define a Display Name Property

To define a Display Name Property you must first create the Property and then designate it as the Display Name Property.

Create a Display Name Property

  1. Select the list on the General Listspage in Model Settings.
  2. Select the Properties tab.
  3. Click Insert. The Insert into Properties dialog displays.
  4. Enter a display name property.
  5. Click OK. The display name property is added to the Properties tab.
  6. To format the display name property, click in the Format field.
  7. Select the format to use for the display name property.

Designate the Property as the Display Name Text for numbered list items

  1. On the Model Settings tab, inGeneral Lists, select the numbered list.
  2. Use the dropdown list in the relevant field in the Display Name Property column to select the property to use for the display name. (You may have to scroll the General Lists grid to the right to see the Display Name Property column.)
  3. Open the numbered list again and select the Grid View tab. All properties configured for the list are displayed.
  4. Under the property designated as the Display Name Property, enter the text you want to display for each item in the list.

  5. Open the Tree View tab. The text is shown here for each list item instead of the system generated unique number.
If you duplicate display names in a numbered list, the the Tree View tab will display the unique #ID number. See Duplicating Display Names in Numbered Lists.

You can use a List-formatted Property as a Display Name Property for a numbered list. To do this, select the display name text from the available values from the list used for the list formatted property.

Use Formula-based Properties for Display Names

The Display Name Property will appear as the label for rows, columns, pages and in List-formats. When you use a Text-fomatted Display Name Property, you can create a formula to generate the display name text for list items. The display name could be a concatenation of line items or other Properties, provided they are converted to Text format using text manipulation functions — such as NAME, LEFT, RIGHT, etc.

Note that the display name can contain the #ID number followed by one or more of the Properties. The syntax to refer to the ID is: NAME(ITEM(listname)).

Here are some examples of how to generate composite display names for numbered lists using formulas for display name properties.

Example 1 — combine Unique ID Number and Customer Name

In this example, the display name uses a combination of the unique ID number and the customer name:

This formula builds a composite display name text:

  • "Opportunity" a hard-coded text string, concatenated with...
    • NAME(ITEM(#Opportunities) which yields the numbered list unique ID number as text string by using the ITEM function nested under the NAME function, concatenated with....
    • " " a hard-coded white space, concatenated with...
    • The value of Which Customer?, itself a text formatted property configured for the #Opportunities list that uses a formula—its value is what has been entered for the text formatted Customer line item in the Opportunities module:

When the #Opportunities numbered list is used as a dimension in a module—here as rows on the Opportunities module — the appropriate display name for each item is built according to the formula applied to the text formatted display name property:

Example 2 — Combine Key Properties

In this second example, the display name uses a combination of key properties by combining the product name and customer name:

This formula builds a composite display name text.

  • NAME(Which Product?) which yields a text string from the value of this list formatted property using the Product list configured for the #Opportunities numbered list:

...is concatenated with...

  • " " a hard-coded white space, concatenated with...
  • The value of Which Customer?, itself a text formatted property configured for the #Opportunities list that uses a formula — its value is what has been entered for the text formatted Customer line item in the Opportunities module — see Example 1 above.

When the #Opportunities numbered list is used as a dimension in a module — here as rows on the Opportunities module — the appropriate display name for each item is built according to the formula applied to the text formatted display name property:

Duplicate Display Names in Numbered Lists

Although names cannot generally be repeated within an Anaplan list, there is an exception in the case of display names in numbered lists — the display name does not have to be unique and can appear in more than one place, even within the same subtotal. The hidden unique ID number ensures it has unique identifier. The Code, if there is one, must also be unique for each item in a numbered list. The Code will be used for import and export routines.

In this project planning example, the display name is the name of the people assigned to each project. A numbered list named #Resources has a parent hierarchy of #Projects. Both the child and the parent hierarchy are numbered lists.

In the example, Emily Ruby is working on 3 different projects at once so her name needs to appear within each project subtotal. Where there are duplicate display names in a numbered list, the unique #ID number for each item is shown in the Tree View tab of the list.

Insert items in a Numbered List

The system stores #ID numbers that have been created in the past and assigns the next unused #ID number. If an item has been deleted from a numbered list, the #ID number is not reused. This means that #ID numbers are unique within a numbered list and stay with an item for life.

  1. On the Edit menu, click Insert.
  2. Select how many items to insert. The system will generate a unique auto-incrementing #ID number for each.
  3. Choose where to insert the new items, by selecting either Before, After, Start or End.
  4. Click OK. The new items are inserted.
  5. Select the Properties used in the display name, by entering the Properties of the list.

See also: Create Action

Delete Items in a Numbered List

  1. On the Edit menu, click Delete.
  2. Select the items that you want to delete.
Because the display name could be ambiguous, make sure that the correct IDs are chosen.

Use Numbered Lists in composite hierarchies

This is the most common use of numbered lists. A composite hierarchy can be used with a numbered list rolling up into a parent. The parent can be daisy-chained, so that a parent can have a parent that is also a numbered list. As a rule, you should try to design the model such that the numbered lists are used only in the lower levels of a composite hierarchy.

See Model Building for more information on good practice when building hierarchies out of Numbered Lists.

  1. In General Lists select the list you want to work with and then click the Configure tab.
  2. Select a Parent Hierarchy from the dropdown list. This can be a normal list or another numbered list.

In the above example, a numbered list named #Resources has a parent hierarchy numbered list named #Projects, which has a parent hierarchy normal list called Organization. (The # prefix is merely a convention to identify numbered lists. You could use your own prefix to show that it is a numbered list or omit it entirely.)

Import into a Numbered List using Codes and Names

It's best to map the primary key to the code, and to leave the name unmapped. For numbered lists, the ‘name' is actually the system-generated #ID number; as you cannot control this, it's not a good idea to use it for mapping. The display name can be ambiguous, so can't be used for mapping on import.

  1. Go to Model Settings > General Lists and open the numbered list.
  2. Click Import and upload the source file, or connect to a list or module within Anaplan.
  3. Map the primary key to the code.
    Codes must not start with # to prevent conflict with system-generated IDs.
    If you want to generate new items, then you must match on Code only (and not the Name). For a numbered list, the Name is the unique system generated #ID number, not the display name. If you have mapped on Code and not the Name and the system finds a new Code, then it will insert a new item, assign it the next new #ID number, and import any properties and parents that have been mapped in the import definition.
  4. If you want to update properties or parents of existing items, you can match on the Code, the Name (ID number), or both.

Import Codes into Numbered Lists

  1. In the import definition, map the #ID in the source file to the Name. The name of a numbered list is the ID number.
  2. Map the code in the source file to the Code of the numbered list. The code and the list will update, provided that the code in the numbered list was blank in the first place.
    It's good practice to import the code when initially creating the new item, although codes can be imported at a later date. Codes can only be imported into items that have blank codes, so any codes must be cleared out first. Once this has been done, codes can be updated using an import.
    The source file must contain the correct #ID number; you can't have the Anaplan-generated #ID number in an external system, so you may need to export the numbered list and all the #IDs and properties first, and then use an external tool to get the source file in the correct format, containing both the external codes and the corresponding Anaplan #ID numbers.

Import into a module containing a numbered list

  1. With the grid open, on the Data menu, click Import. Choose a file to upload or another Anaplan module and go through the import wizard in the usual way.
  2. When mapping into a dimension that's a numbered list, #IDs or codes must be used. Codes are the most reliable method for importing from external systems. You can't map on the display name directly, however you can set things up to use a workaround. See next section.

Import into a module containing a numbered list - mapping by name workaround

Set up a line item in a source module which will enable the mapping of numbered list items when importing into a module containing a numbered list:

  1. Create a new line item in your source module containing the code of each item in the numbered list.
  2. Populate this new line item using the formula CODE(ITEM('List')).
  3. Pivot the module view so that line items are columns.
  4. Save this as a view.
  5. In the target or import destination module, select Data>Import>Connect to Anaplan Model>Saved View and select your saved view in the source module from the list. Now, in the import dialog box you will be able to map the new line item containing the code to the numbered list items.

Use SELECT, ITEM, FINDITEM, and NAME Functions with Numbered Lists

When working with numbered lists, the SELECT and ITEM functions require the # ID number. The display name could be ambiguous, so the name (# ID number) must be used instead. For this reason, when you are building a formula using these functions, it is recommended that you use point-and-click on specific Numbered List items. The system will then automatically enter the unique #ID number of the Numbered List item into the formula.

Sales.Gross Sales[SELECT: Products.'#12345']

Sales Details.Amount[SELECT: Transactions.'#2']

Similarly, ITEM function refers to the underlying unique name (the #ID) and not the display name.

IF ITEM(Transactions) = Transactions.'#3' THEN 1 ELSE 0

The FINDITEM function is used to find an item in a list based on a text input. For Numbered Lists, the text must be either the code or the # ID number. You cannot find an item based on the display name as this may be ambiguous.

Result = FINDITEM(Transactions, Transaction ID)

Result=FINDITEM(Transactions,'#3')

The NAME function will return the unique name (the #ID) and not the display name.

Result = NAME(ITEM(Transactions))

Here, the display name has been set to be prefixed by the word ‘Transaction'; the NAME function always returns the #ID and not the display name.

Use the LOOKUP and SUM Functions with Numbered Lists

If you have a module containing a numbered list, you will need a LOOKUP function to pull data in, and a SUM function to pull data out. For example, suppose you have a numbered list named #Resources that has a list-formatted property of People; to pull data into the Project Days module, which has a dimension of #Resources, use a LOOKUP function.

Pull Data into Modules with Numbered Lists

Use the formula:

Days Available = People Details.Days Available[LOOKUP: #Resources.People]

Pull Data out of Modules with Numbered Lists

To pull data out of the Project Days module and into a module that has People as a normal dimension, use a SUM function:

Days Booked = Project Days.Days[SUM: #Resources.People]

List formatted Property for use with SUM and LOOKUP

The numbered list will typically have a list-formatted property used for both the SUM and LOOKUP functions. The same property can also be used as the display name.