--- title: "Rules – Define Entity-Level Calculations in Board Data Models" slug: "rules" description: "Learn how to create and apply Rules in Data Models, defining members and enhancing Cubes with effective formulas for better data analysis. Rules are formulas tied to a single Entity that compute the value of one member based on others, applied to Cubes irrespective of active Selections." tags: ["Layout", "Objects", "Developer", "Formulas", "Block settings", "Planner", "Layout Editor", "Power User"] updated: 2026-01-29T10:02:37Z published: 2026-03-31T09:00:24Z canonical: "help.board.com/rules" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.board.com/llms.txt > Use this file to discover all available pages before exploring further. # Rules Rules are sets of formulas defined on members of the same Entity. Rules can be created under the Rules section of a Data Model. Using a Rule, it is possible to define a specific member as the result of a formula involving other members of the same Entity, regardless of any Selection that may be active on that Entity. A Rule is always associated with a single Entity and can be used with (or applied to) all Cubes that have that Entity as a dimension in their structure. The selected Rule is always applied to the values of the previous Data Block in the list, taking into account only the most-nested Entity in the Axes area (i.e. the one in the rightmost position in the "By Row" or "By Column" field). Rules, therefore, cannot be the first Data Block in the list (Block "a"), and in order for them to work, they need to be used in a Layout with their associated Entity set By Row or By Column. If the Entity is set By Row, it is possible to add another Entity in the same axis as a grouping Entity (i.e. the one in the leftmost position in the "By Row" field). Those Entities must not be part of the same hierarchy. It is not possible to add another Entity By Column when the Entity that is defined by the Rule is set By Column. Read more [here](/v1/docs/use-of-rules-in-layouts). > [!TIP] > **Example** If a Rule is defined on the Entity "ProfitAndLoss" and you want to use it in a Layout, you have to set the Entity By Column or By Row. If you set it By Row, you can add another unrelated Entity, for example the Entity "Month", and add it as the first Entity in the "By Row" field as shown below. ![contents/assets/images/rules.layout.example.png](https://cdn.document360.io/8d6f1ae8-0cac-4d0d-a208-6245b83df94a/Images/Documentation/rules-image-4dtepvfd.png) Rules can be added from the Data panel of the Layout editor, in the "More" subpage. To understand the basic concepts about Rules, see [Rules basic concepts](/v1/docs/rules-basic-concepts). ![contents/assets/images/rules.layout.editor.PNG](https://cdn.document360.io/8d6f1ae8-0cac-4d0d-a208-6245b83df94a/Images/Documentation/rules-image-u350dk3r.png)