---
schema_version: "1"
id: d276988c3200e5e077d8827611b202cb51c0ad025f4e7bb9447f00f9729053e2
title: "Example: Period Then Sub Periods"
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/concept_rounding_precision_period_subperiods.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.concept_rounding_precision_period_subperiods.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a7d50f06d72449181518a8ee872a9c6ea208e3a865a175a43aeb1f7de8151df7
description: Here’s an example to explain how rounding is done for period then sub periods.
products:
  - Consumer Goods
release: "264"
---
# Example: Period Then Sub Periods

Here’s an example to explain how rounding is done for period then sub periods.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
      <colgroup>
        <col>
      </colgroup>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <p>Available in: Lightning Experience</p>
            <p style="margin-bottom:0;">Available in: <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions where Consumer Goods
              Cloud is enabled</p>
          </td>

        </tr>
      </tbody>
    </table>

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-consumer_goods_trade_promo-264-0-0-production-enus/169b0c8b-175d-4639-bf96-610b16824687/images/icon_example.png)

Example ![Sample data for period with subperiod](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-consumer_goods_trade_promo-264-0-0-production-enus/169b0c8b-175d-4639-bf96-610b16824687/consumer_goods_trade_promo/images/period_then_subperiod.png)

Manual input 13.33 at KPI total level is distributed across plan and time hierarchy. The following configurations are also considered:

 
| Configuration | KPI |
| --- | --- |
| Rounding Type | With carry |
| Rounding Order | Period then Subperiods |
| Rounding Precision | 0 |
| Time Granularity | Subperiod |

Here’s the sequence of execution.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:33.33333333333333%">
              <col style="width:33.33333333333333%">
              <col style="width:33.33333333333333%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d44426e141">Step No.</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d44426e144">Calculation step</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d44426e147">Description</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Step No." class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e141 ">1</td>

                <td data-label="Calculation step" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e144 ">Period values</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e147 ">Period values are calculated by applying merge rule on the bucket values. For
                  Week (W)1, 1.9 + 2.54 = 4.44. Similarly, for W2 and W3.</td>

              </tr>
              <tr class="">
                <td data-label="Step No." class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e141 ">2</td>

                <td data-label="Calculation step" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e144 ">Rounded values</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e147 ">Period values are rounded using global carry. For W1, round 4.44 = 16.
                  Similarly, for W2 and W3.</td>

              </tr>
              <tr class="">
                <td data-label="Step No." class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e141 ">3</td>

                <td data-label="Calculation step" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e144 ">Period Carry</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e147 ">
                  <p>The carry values are determined based on the global carry used. The system
                    obtains a global carry based on the following logic: (Value of the period before
                    rounding) - (Value of the period after rounding)</p>
                  <p style="margin-bottom:0;">For W1, 4.44 – 4 = 0.44.
                    Similarly, for W2 and W3.</p>
                  <p style="margin-bottom:0;"> .</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Step No." class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e141 ">4</td>

                <td data-label="Calculation step" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e144 ">Rounded sub period values</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e147 ">
                  <p>The rounded sub period values are obtained by rounding the sub period values
                    with local carry.</p>
                  <p>For W1, 1.9 rounded to 2.</p>
                  <p style="margin-bottom:0;">2.54 + (-0.10) = 2.44, rounded
                    to 2.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Step No." class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e141 ">5</td>

                <td data-label="Calculation step" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e144 ">Subperiod Carry</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e147 ">
                  <p>The system obtains a local carry based on the logic: (Actual sub period values)
                    – (Rounded sub period values)</p>
                  <p>For W1: </p>
                  <ul>
                    <li>Sub period 1: 1.9 – 2 = -0.10</li>
                    <li>Sub period 2: 2.54 - 2 = 0.54. The carry is discarded for the last sub period
                      of the week.</li>
                  </ul>
                  <p style="margin-bottom:0;">Similarly, the system calculates the values for W2 and W3.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Step No." class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e141 ">6</td>

                <td data-label="Calculation step" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e144 ">Correction factor</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d44426e147 ">
                  <p>Correction factor is calculated for the first and last timeframes of a
                    requested time range to improve the precision of calculation results.</p>
                  <p>The sub
                    periods and weeks are aligned such that the aligned value = sub period value.
                    Value of the last sub period value = Rounded period value – Sum of aligned values
                    of the other sub periods of the week.</p>
                  <p>For W1:</p>
                  <ul>
                    <li>Sub period 1: 2.</li>
                    <li>Sub period 2: 4 – 2 = 2.</li>
                  </ul>
                  <p style="margin-bottom:0;">Similarly, the system calculates the values for W2 and W3.</p>
                </td>

              </tr>
            </tbody>
          </table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-consumer_goods_trade_promo-264-0-0-production-enus/169b0c8b-175d-4639-bf96-610b16824687/images/icon_note.png)

Note For Period then Subperiods (without carry), the only difference is that period values are rounded without carry and sub period values are rounded with local carry.