In Harmoni, a standard axis is a discrete or categorical variable with elements for each response. Harmoni lets you create customized axes and elements and there are several ways to do this using existing variables. This article focuses on two methods.
● Drag and drop items from an existing variable
● Copy and paste items from an existing variable
Constructions automatically update when new data sources are added.
In this article
1. Create a New Item - Drag and Drop
You can create a new axis by selecting and dragging existing elements out of an axis into the project tree. This action creates a copy of the original axis.
- Select one or more element(s) from the axis and drag to a new position in the project tree.
- In the project tree, the new axis appears where you drop the dragged elements.
- Elements are editable. You can edit the elements using the expression editor.
- You can add additional elements to the new axis by using new element in the design menu.
- In edit mode, select the elements to use for creating the new axis
- Drag the elements out to the desired position and drop them
- Edit or rename the axis if needed and press enter
- Open the library/editor to view the definition
- Add a new element and define in the expression editor
2. Create a New Item - Copy and Paste
The options Copy and Paste, under construct in the design menu, let you make a copy of an existing item in the project tree.
By using copy and paste you can:
- Create a copy of an entire axis
- Copy selected elements into an existing axis
- Copy axes from a grid to create new standard axes
- Copy elements from a grid into an existing axis
- Copy a measure to create a new measure
- Copy a weight to create a new weight
When copying axes or elements, the following applies:
- Bases, auto-weights, and flags applied are carried over to the new axis/element
- You can add new elements by using new element from construct in the design menu
- Elements are editable. You can edit the elements using the expression editor
- Copy and paste into or within a grid isn't supported
a. Copy and Paste - New Axis
- Select an axis and click copy from the menu
- Select the desired position in the project tree and click paste
- Rename and modify the new axis
b. Copy and Paste - New Element
You can select and copy an element and paste into the same axis or select a different axis to add it into. Once pasted, you can relabel and redefine the element, making use of the existing definition.
- Select an element or a group of elements in your project tree
- Select copy under edit
- Select the desired position in the project tree by selecting an item
- Select paste under edit
- Select the element and click on define
- In the expression editor, click EDIT on the text field and update the definition
- Once ready, Apply Expression
- If required, continue adding elements by selecting new element.
With auto sync on, Project Owners only see Apply Expression. Save Expression is available for Explorers or non-owning Creators or for Project Owners when auto sync is off.
Learn more about Apply Expression and Save Expression.
Where to from here?
Learn more about Constructions: