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

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

### 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 subperiod then period](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/subperiod_then_period.png)

Here are a few considerations for the example.

- KPI spans across three weeks (W1 - W3), and each week contains different sub periods. W1 consists of two sub periods, W2 consists of four sub periods, and W3 consists of a single sub period.
- 16 is entered as manual input at the KPI total level, and is distributed across plan and time hierarchy.

The following configurations are also considered:

 
| Configuration | KPI |
| --- | --- |
| Rounding Type | With carry |
| Rounding Order | Subperiod then period |
| 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="d39337e154">Step No.</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d39337e157">Calculation step</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d39337e160">Description</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Step No." class="slds-cell-wrap" style="vertical-align:top;" headers="d39337e154 ">1</td>

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

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d39337e160 ">
                  <p>Period values are calculated by rounding the sub period values with global
                    carry.</p>
                  <p>For Week (W) 1, round 2.29 = 2. Round (0.29 + 3.05) = Round (3.34) =
                    3</p>
                  <p style="margin-bottom:0;">Similarly, period values are calculated for other weeks.</p>
                </td>

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

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

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d39337e160 ">
                  <p>Carry values are determined based on the global carry used. The system obtains
                    a global carry based on the following logic: (Carry of the previous period + value
                    of the period before rounding) - value of the period after rounding</p>
                  <p>For W1: 2.29 -
                    2 = 0.29, and similarly for the remaining weeks.</p>
                  <p style="margin-bottom:0;">Similarly, carry values are
                    calculated for other weeks.</p>
                  <p style="margin-bottom:0;">For Subperiods then Period (without carry), the
                    values for W1, W2, and W3 are zero.</p>
                </td>

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

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

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d39337e160 ">Period values are calculated by applying merge rule on the sub period values.
                  For W1, 2+3=5, and similarly for the remaining weeks.</td>

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

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

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d39337e160 ">Rounded period values are obtained by rounding the period values without carry.
                  For W1, Round (5) = 5, and similarly for the remaining weeks.</td>

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

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

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d39337e160 ">The period carry isn’t considered and hence the value is zero.</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 Subperiod then Period (without carry), sub periods and periods are rounded without carry.