Sales Cost of Sales Gross Profit (Gross Margin Ratio) <- calculated item SG&A Expenses Operating Income (Operating Margin Ratio) <- calculated item …
Elastic Axes
Context
In management planning and reporting systems, forms that display numerical breakdowns by department, product group, account, and so on are very common. Departments and product groups may be arranged along the vertical axis or along the horizontal axis. In fusion_place, departments, product groups, accounts, and the like are represented by dimensions.
Departments, product groups, accounts, and so on may be added to or abolished from a dimension, or the grouping used for aggregation may change (for example, the headquarters overseeing the Mie Branch may change from the Kansai Regional Headquarters to the Chubu Regional Headquarters). Since forms tend to be numerous, modifying each of them one by one whenever such a change occurs is time-consuming.
Problem
When a "member" representing an individual department, product group, etc. is added to a dimension, removed from a member tree, or moved within a member tree — in short, whenever a member tree is changed in any way, we want the change to be reflected automatically in the order of rows and columns of the tables displayed in forms.
Forces
-
Immediate propagation: Changes to a member tree should be reflected immediately in the axes of all intended forms.
-
Ease of configuration: The configuration needed to reflect member tree changes in individual forms should be simple and require only a small amount of description.
-
Sharing: There may be many forms that need to display a member tree under the same conditions. In such cases, a means of sharing the configuration should be provided, not only to reduce configuration effort but also to make communication about form specifications easier.
-
Single-level and multi-level display: When displaying a hierarchy such as an organization in a form, you may display only a single level, or display a breakdown across multiple levels. In either case, changes to the member tree should be reflected automatically.
Solution
Use member lists in the axis configuration of forms to repeat columns and rows a variable number of times.
In simple forms, a member list must be assigned to each dimension placed on the vertical and horizontal axes, so this is achieved as a matter of course.
In full-featured forms, place a Loop Specification on each axis you want to make variable in the form. In a Loop Specification, you can specify a member list as the repetition condition.
In either case, each item generated by the repetition (a row, a column, or a group of them) corresponds one-to-one to a member included in the member list created at runtime. Therefore, rows or columns are generated and displayed so as to correspond to each member of the member list.
Indentation
When this pattern is applied in the row direction and rows are displayed for members across multiple levels, there is often a need to indent the row titles. For how to handle this, see the sample and explanation in the fusion_place Q&A: Sample of Title Indentation in Forms.
Examples
This pattern is so fundamental that it is used in almost every form. Here are some examples.
-
In a report with accounts arranged along the vertical axis, such as a P/L report, additions and removals of accounts are automatically reflected in the order of rows on the vertical axis.
-
In a sales report by product group, product groups are arranged along the vertical axis and monthly sales along the horizontal axis. Additions and removals of product groups are automatically reflected in the order on the vertical axis.
-
In a report where the first column shows the total for an aggregate department and the second and subsequent columns show the breakdown by its subordinate departments, additions and removals of subordinate departments are automatically reflected in the order on the horizontal axis.
Consequences
Benefits
-
Immediate propagation: Member lists are recreated each time the form screen is redisplayed, reflecting the latest contents of each dimension, so columns and rows are displayed based on the latest dimension contents.
-
Ease of configuration: A member list definition has only a few settings.
-
Sharing: Member lists can be defined within individual forms, but they can also be defined as part of a dimension. By referring to and applying a member list definition of a dimension in forms, configuration effort is reduced and communication about specifications becomes easier.
-
Single-level and multi-level display: By specifying the "Expansion Method" of a member list, you can include not only direct child members but also descendant members.
Liabilities
-
Ease of configuration: If you want to display calculated items that cannot be expressed as aggregated members between members, the configuration becomes complex, because the member list has to be split. For example, consider the following sequence of P/L accounts:
In this example, Gross Margin Ratio is a calculated item in the form, and there is no corresponding account member. Therefore, you need to display the items from Sales to Gross Profit with one Loop Specification and member list, display Gross Margin Ratio as a calculated item, and then display the items from SG&A Expenses onward with another Loop Specification and member list. In other words, two Loop Specifications are required. In this way, as the number of calculated items increases, the number of Loop Specifications increases and the form configuration becomes more complex.
As a workaround, you could change the layout so that calculated items are placed at the end rather than in the middle. In this case, after all P/L accounts are listed, an indicator section is added to display the calculated items.
Sales Cost of Sales Gross Profit SG&A Expenses Operating Income … (Gross Margin Ratio) <- calculated item (Operating Margin Ratio) <- calculated item …
This way, only one Loop Specification is needed to display the items other than the calculated items.
Related Patterns
Succeeding Patterns
-
When a dimension has multiple member trees, you can create a form in which the member tree used to arrange members in rows and columns can be selected from among them. This is useful when you set up "Generational Member Trees" or "Multiple Aggregation Trees". See each pattern for details.
Other Related Patterns
-
This pattern is intended for forms. In Excel-Link, template processing allows you to make the vertical axis variable (the horizontal axis cannot be made variable). See "Elastic Vertical Axes (Excel)".