> For the complete documentation index, see [llms.txt](https://kb.logicerp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/setup-accounts/setup-customer-database/retail-customer-and-branch-wise-new-repeat-lapsed-sale-analysis/retail-customer-and-branch-wise-new-repeat-lapsed-sale-analysis-configuration.md).

# Retail Customer & Branch Wise New/Repeat/Lapsed Sale Analysis - Configuration

The configuration of the [**Retail Customer & Branch Wise New/Repeat/Lapsed Sale Analysis**](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/setup-accounts/setup-customer-database/retail-customer-and-branch-wise-new-repeat-lapsed-sale-analysis.md) report decides how the rows are broken down (period, branch, city, gender, age band and so on), which subtotals are printed, how quantities and net amounts are shown, and how **New**, **Repeat** and **Lapsed** customers are counted. You can keep several configurations and pick one when you run the report.

The report counts only sale bills of **registered retail customers**. Bills without a customer (walk-in bills) are left out of every figure.

The figures the report shows — such as **NEW CUSTOMERS**, **REPEAT CUSTOMERS**, **LAPSED CUSTOMERS**, **(%) REPEAT RATE**, **AVERAGE BASKET VALUE** and **DAYS SINCE LAST BILL** — are picked in the report's **Setup Column Attributes**, not in this window. This window sets how they are worked out.

***

### **Step 1: Open the configuration**

* Navigate to **Setup\Setup Accounts\Setup Customer Database** and click on "Retail Customer & Branch Wise New/Repeat/Lapsed Sale Analysis".
* Click **Config** (or press **F5**). The **Retail Customer & Branch Wise New/Repeat/Lapsed Sale Analysis Config** window opens.
* Pick a configuration from the list to change it, or type a new name to start one. Names are saved in capital letters.

**A new configuration starts with:** Period Type **Monthly**, the **Period** and **Branch** dimensions ticked, **Branch Totals** and **Grand Totals** ticked, Look Back Period **12 Months**, Repeat Customer Basis **Two Or More Bills Within The Range**, Age Band Width **10 Years** and Sales Mix Of **Parent Level**.

This gives one row per month and branch, grouped by month, with a grand total. Two things to know about this starting set:

* **Branch Totals** has no effect until **Branch** is moved ahead of **Period** in **Dimension Order** (Step 3), because the last dimension in the order never gets a subtotal.
* **LAPSED CUSTOMERS** is shown only on rows that do not carry a period, so with this starting set it appears only on the grand total row (Step 6).

***

### **Step 2: Report Options**

| Setting                                           | What it does                                                                                                                                                                                                                                                       |
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Period Type**                                   | How bills are grouped into periods: **Date Wise**, **Week Wise**, **Journey Cycle Wise**, **Monthly**, **Quarterly**, **Half Yearly** or **Yearly**. Used only when the **Period** dimension is ticked (Step 3).                                                   |
| **Skip Rows With No Data**                        | Leaves out detail rows whose figures are all zero. Total rows are always printed.                                                                                                                                                                                  |
| **User Defined Net Amount-1 to 4**                | Four net amount columns you define yourself (shown as **UD NET AMOUNT-1** to **-4**). Each one opens a picker where you choose what is added and deducted.                                                                                                         |
| **Total Quantity-1 As** / **Total Quantity-2 As** | The unit of the two quantity columns, **TOTAL QTY-1** and **TOTAL QTY-2**: **Unit**, **Item CF1**, **Item CF2**, **Item CF3** (the quantity divided by the item's conversion factor) or **Weight / Unit** (the quantity multiplied by the item's weight per unit). |
| **Weight-1 As** / **Weight-2 As**                 | **KGS**, **GMS**, **QTLS** or **TONS**. Can be changed only when the matching quantity is set to **Weight / Unit**; otherwise it stays at KGS.                                                                                                                     |

***

### **Step 3: Dimensions — how the rows are broken down**

Tick one or more dimensions. Each ticked dimension becomes a column of the report, and the rows are split by it.

| Dimension                  | Splits the rows by                                                                                                                                                                                                                                                                                                    |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Period**                 | The period chosen in **Period Type**.                                                                                                                                                                                                                                                                                 |
| **Branch**                 | The branch where the bill was made.                                                                                                                                                                                                                                                                                   |
| **Enrollment Branch**      | The branch where the customer was registered. Ticking it together with **Branch** shows customers who shop at a branch other than the one that registered them.                                                                                                                                                       |
| **City**                   | The customer's city.                                                                                                                                                                                                                                                                                                  |
| **Gender**                 | The customer's gender.                                                                                                                                                                                                                                                                                                |
| **Age Band**               | The customer's age as at the report's end date, in bands of the width set in **Age Band Width** (Step 6), for example **30-39**. The age is taken from the date of birth, or from the age entered where there is no date of birth. Customers with neither appear as **NOT KNOWN**.                                    |
| **Segment**                | The customer's retail customer segment.                                                                                                                                                                                                                                                                               |
| **Retail Customer Groups** | The retail customer group levels chosen in **Extra Retail Customer Groups** (Step 5).                                                                                                                                                                                                                                 |
| **Branch Groups**          | The branch group levels chosen in **Extra Branch Groups** (Step 5).                                                                                                                                                                                                                                                   |
| **Item Groups**            | The item group levels chosen in **Extra Item Groups** (Step 5).                                                                                                                                                                                                                                                       |
| **Fin Year**               | The financial year. To compare years, tick the years on the report's run screen: the same day-and-month range is read in each ticked year. The **Fin Year** column appears automatically whenever more than one financial year is read (also when the date range crosses a year end), even if this box is not ticked. |

* **Dimension Order** sets the order of the ticked dimensions from left to right, and the subtotals follow this order. Put the widest grouping first, for example **Branch** before **Period** for month-wise figures within each branch.
* The **last** dimension in the order never gets a subtotal row, even if its total is ticked.
* At least one dimension must be ticked. Otherwise the configuration is not saved and the message "No dimension is selected, so the report would produce a single total row. Tick at least one dimension." appears.

***

### **Step 4: Report Totals**

| Setting                                                                                                                                         | Prints                                                                                                                                                                                                                    |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Period Totals**, **Branch Totals**, **Enrollment Branch Totals**, **City Totals**, **Gender Totals**, **Age Band Totals**, **Segment Totals** | A subtotal row when that dimension's group closes. Each can be ticked only when its dimension is ticked, and it is cleared when the dimension is unticked. It has no effect on the last dimension in **Dimension Order**. |
| **Fin Year Totals**                                                                                                                             | A subtotal for each financial year, whenever the **Fin Year** column is present and is not the last dimension.                                                                                                            |
| **Grand Totals**                                                                                                                                | A total row at the end of the report.                                                                                                                                                                                     |

Subtotals for the group dimensions are not set here: in the group picker (Step 5), select the level and tick **Display Total** (or press **F3** on the group).

***

### **Step 5: Retail Customer Group Dimension and Extra Group Options**

| Setting                          | What it does                                                                                                      |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| **Extra Retail Customer Groups** | Pick the retail customer group levels to show, their order, and whether each gets a subtotal (**Display Total**). |
| **Extra Item Groups**            | The same, for item group levels.                                                                                  |
| **Extra Branch Groups**          | The same, for branch group levels.                                                                                |

The levels are used only while the matching dimension is ticked under **Dimensions**. When **Retail Customer Groups**, **Branch Groups** or **Item Groups** is ticked, at least one level must be picked here. Otherwise the configuration is not saved, for example: "Item Groups is selected but no Item Group level is chosen. Pick at least one level in Extra Item Groups or switch the dimension off."

***

### **Step 6: Customer Movement — how New, Repeat and Lapsed are counted**

| Setting                   | What it does                                                                                                                                                                                                                                                                       |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Look Back Period**      | **3 Months**, **6 Months**, **12 Months** (default) or **24 Months**. How far back before the report's start date the report looks for earlier bills of each customer.                                                                                                             |
| **Repeat Customer Basis** | **Two Or More Bills Within The Range** (default): a customer with two or more bills within the dates of that row. **Also Bought In The Look Back Period**: a customer who bought within the report's dates and had also bought before the start date, within the look-back months. |
| **Age Band Width**        | **5**, **10** (default), **15** or **20 Years**. Used only when **Age Band** is ticked under Dimensions.                                                                                                                                                                           |

With these settings:

* **New Customers** are customers with no bill during the look-back months before the start date, whose first bill falls within the report's dates. A new customer is counted only in the period of their first bill.
* **Repeat Customers** with the default basis are judged row by row. A customer with one bill in each of two months is not Repeat on either month's row, but is Repeat on the total rows above them. So month rows need not add up to the total.
* **Lapsed Customers** are customers who bought during the look-back months but not at all within the report's dates. This figure is **blank on every row that carries a period**; it is shown on total rows without a period, grouped by the branch, city and so on of the customer's earlier bills.

> **Example — Look Back Period 12 Months, report for April 2026**
>
> * **Riya** last bought in December 2025 and bought once on 5 April 2026. She is **not New** (she bought within the last 12 months) and not Lapsed. With the default basis she is **not Repeat** either (only one April bill). With **Also Bought In The Look Back Period** she is **Repeat**.
> * **Aman** never bought before and bought on 10 April and 22 April 2026. He is **New**. With the default basis he is also **Repeat** (two April bills). With **Also Bought In The Look Back Period** he is not Repeat, because he had not bought before April.
> * **Neha** bought in August 2025 but not in April 2026. She is **Lapsed**, shown on the rows without a period, such as the grand total.

***

### **Step 7: Sales Mix**

| Setting          | What it does                                                                                                                                                                                                                                                                                                                                                            |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Sales Mix Of** | What the **(%) SALES MIX** and **(%) QTY MIX** columns are a share of. **Parent Level** (default): the nearest subtotal printed above the row, or the grand total if there is none. **Branch**: the row's branch total, which works only when **Branch** is a dimension to the left of the row. **Grand Total**: the whole report, which needs **Grand Totals** ticked. |

The **(%) SHARE OF GRAND** column is always the share of the grand total.

***

### **Step 8: Save**

* Click **Save** and answer **Yes** to **Save Configuration**. The window closes, and the configuration is used the next time the report is run with it.
* The window checks the settings before saving and shows a message if a dimension or group level is missing (Steps 3 and 5).
* You need rights to modify configurations; otherwise the message "Modification Rights Not Available." appears.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/setup-accounts/setup-customer-database/retail-customer-and-branch-wise-new-repeat-lapsed-sale-analysis/retail-customer-and-branch-wise-new-repeat-lapsed-sale-analysis-configuration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
