> For the complete documentation index, see [llms.txt](https://docs.fabricplan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fabricplan.com/user-guide/5-top-down-allocation/5-3-locking-rules.md).

# 5.3 - Locking rules

### Lock cells directly

1. Select a cell, and then open the distribution menu.<br>

   <figure><img src="/files/5FS1Absp2OrkDvTk3DEW" alt=""><figcaption></figcaption></figure>
2. Select **Lock this cell**.<br>

   <figure><img src="/files/r6i6pP51dh5NZp8559fz" alt=""><figcaption></figcaption></figure>
3. Select **Lock all children** to lock descendant cells.<br>

   <figure><img src="/files/dLx0P461axalrSqoGqOi" alt=""><figcaption></figcaption></figure>
4. Verify that locked cells appear grayed out in the planning sheet.<br>

   <figure><img src="/files/wqXySVBgcyX31aKWvRmL" alt=""><figcaption></figcaption></figure>
5. Update a parent value to verify the effect on locked descendant cells.<br>

   <figure><img src="/files/vgbhRpSxiSDZzFPZUZyJ" alt=""><figcaption></figcaption></figure>
6. Verify that unlocked descendant cells reflect the updated value while locked cells remain unchanged.<br>

   <figure><img src="/files/ZF6YgSI0WpMIshJCbx9n" alt=""><figcaption></figcaption></figure>

### Create locking rules

1. Open the **Model** ribbon.<br>

   <figure><img src="/files/OmCEHUd866RH1fy4JrRM" alt=""><figcaption></figcaption></figure>
2. Open the **Rules** dropdown.<br>

   <figure><img src="/files/QzMUtc6Ok9BBXL1AZwAA" alt=""><figcaption></figcaption></figure>
3. Select **Locking rule**.<br>

   <figure><img src="/files/Jht5GVLlIZDyxrrNdiN3" alt=""><figcaption></figcaption></figure>
4. Enter a name for the locking rule.<br>

   <figure><img src="/files/byqwHQTNlR1gQ0de4Md5" alt=""><figcaption></figcaption></figure>
5. Select measures for the locking rule by using the **Measures** dropdown.<br>

   <figure><img src="/files/Y8T3fB0yU8mnQQIN3R0F" alt=""><figcaption></figcaption></figure>
6. Select the **Rule Type** field.<br>

   <figure><img src="/files/hoj9hrL6IfH3NdBchx6v" alt=""><figcaption></figcaption></figure>
7. Select the checkbox to apply the rule to child rows and columns.<br>

   <figure><img src="/files/NwaleGETTIaN1hVVJ6nK" alt=""><figcaption></figcaption></figure>
8. Open the **Rows selection** dropdown.<br>

   <figure><img src="/files/clF3oFKlH9IrE9VbYhW1" alt=""><figcaption></figcaption></figure>
9. Select **All Rows** to apply the locking rule to all rows.<br>

   <figure><img src="/files/b16ixjOpma59hl9xabfW" alt=""><figcaption></figcaption></figure>
10. Select **Custom** to choose specific rows.<br>

    <figure><img src="/files/SpomUsK6F03FrLpJb4tz" alt=""><figcaption></figcaption></figure>
11. Select rows by using the checkboxes.<br>

    <figure><img src="/files/e8ce25ZcV4uaofEZN4kk" alt=""><figcaption></figcaption></figure>
12. Select the **Filter** option to configure row filters.<br>

    <figure><img src="/files/2y63ZMKf1YoLg0AuUMs6" alt=""><figcaption></figcaption></figure>
13. Configure row filters by using the dropdown fields.<br>

    <figure><img src="/files/cD505faAqcVruZHL5K55" alt=""><figcaption></figcaption></figure>
14. Select **Submit**.<br>

    <figure><img src="/files/5cUhnkJve2vprSTZI3Nt" alt=""><figcaption></figcaption></figure>
15. Open the **Column Selection** dropdown.<br>

    <figure><img src="/files/G4AzyL7MVJKJQ1NReyly" alt=""><figcaption></figcaption></figure>
16. Select **Open Period** to apply the rule to open-period columns.<br>

    <figure><img src="/files/VIapq3pN9AkO0ggZyfio" alt=""><figcaption></figcaption></figure>
17. Select **Period Range** to configure a date range.<br>

    <figure><img src="/files/WaCkF8hvw0OnBxG5CSAS" alt=""><figcaption></figcaption></figure>
18. Select a date range by using the calendar.<br>

    <figure><img src="/files/Ynl2o3AcHCFuQp4fnIze" alt=""><figcaption></figcaption></figure>
19. Select **Custom** to choose specific time periods.<br>

    <figure><img src="/files/kNWcjOESL0V1nDCug7LB" alt=""><figcaption></figcaption></figure>
20. Select time periods by using the checkboxes in the **Selection** tab.<br>

    <figure><img src="/files/3M2tj9o6wJG5WZpQE2Rb" alt=""><figcaption></figcaption></figure>
21. Select the **Filter** option to configure column filters.<br>

    <figure><img src="/files/ryRoBdPX2MkpFcnDn8SW" alt=""><figcaption></figcaption></figure>
22. Select **Submit**.<br>

    <figure><img src="/files/aZwha4aYQiCgSZ5vLUcz" alt=""><figcaption></figcaption></figure>
23. Select **Create**.<br>

    <figure><img src="/files/EgQNwMjXyMaVnEreFdWL" alt=""><figcaption></figcaption></figure>

### Manage locking rules

1. Open the **Rules** dropdown in the **Plan** ribbon.<br>

   <figure><img src="/files/UYuYaJQqODqZNzUmCaxT" alt=""><figcaption></figcaption></figure>
2. Select **Manage rules**.<br>

   <figure><img src="/files/q14UbrpreUcnXnxIzWmI" alt=""><figcaption></figcaption></figure>
3. Manage locking rules by viewing, editing, duplicating, deleting, or disabling existing rules.<br>

   <figure><img src="/files/S5T8aWfxNhOBCxTE5NOW" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.fabricplan.com/user-guide/5-top-down-allocation/5-3-locking-rules.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
