Zum Hauptinhalt springen

Dynamic collections (spreadsheet filter)

Regular data label collections are mostly static: all labels, a few, or one. Only All labels is somewhat dynamic. When you need a truly dynamic collection — one whose content is computed from data — use a spreadsheet filter.

A spreadsheet filter points the collection at a model that contains the logic to decide which labels are currently included.

When to use

A typical case: departments and employees, where the employee collection should depend on the selected department. You could model this with dependent labels, but spreadsheet filters are far more flexible:

  • change dependencies easily
  • support multiple dependencies
  • no suffix appended to the label name
  • an easy way to include all labels
note

Spreadsheet filters are also a clean way to hide outdated labels without deleting them, so the underlying data is preserved for auditing.

Step by step

1. Create the collection

  1. Open Data and labels → category → collections icon → plus.
  2. Select the category, name the collection, and set the selection type to All labels.
  3. Switch to the Filter tab and click Save for now — you will return after building the filter model.

Screenshot placeholder

2. Build the filter model

Create a model that produces the names, IDs, descriptions, or tags of the labels that should be in the collection. For the department/employee example:

  1. Add the Department category as a dataset selection so you can store which employees belong to which department.
  2. In Design mode, set up a cell storage section that lists the employees down a column (advanced mode, employees category as the down dimension with line expansion) and outputs their names in a neighboring column.
  3. Add a section anchor over a column that holds the filtered labels, using an Excel formula that returns the label only when the row is filled, for example:
=IF(C2<>"";B2;"")
note

Using label IDs instead of names in the filter section improves performance for larger categories.

3. Configure the filter properties

Return to the collection's Filter tab and configure it:

  • 1 Enable Use spreadsheet filter.
  • 2 Select the filter spreadsheet (the model you built).
  • 3 Select the section anchor with filter data.
  • 4 Specify what the section contains (label id, name, description, or tags).
  • 5 Choose the compare method (for example equal), then Save.
Filter data containNotes
Data label idMost performant.
Data label nameThe label names.
Data label descriptionAllows matching several labels (descriptions need not be unique).
Data label tagsAllows matching several labels (tags need not be unique).

4. Use the collection in a model

Use the spreadsheet-filter collection as an option in a model's dataset selection. Its content is now driven by the filter model.

note

You must use at least all the selections of the filter model, but you may use more. Nooxl runs the filter model every time it is used, so you never have to refresh the filter data manually.