Skip to main content

KPI limits

Path: Settings → Other → KPI limits (/kpi_limits). The same tabs sit on KPI Dashboard (/kpi_dashboard).

KPI limits list

TabAddressPermission
Ongoing/kpi_dashboardKPI dashboard access
KPI limits/kpi_limitsKPI limits view

Add needs the KPI limits create permission. Edit, delete, and print are separate switches on the same KPI role.

Add a limit​

Add new and the row Edit open the same form.

FieldRequiredDefaultValues
Target typeYesEmptyUser (module 2), Branch (module 7), or Department (module 26)
TargetYesEmptyPeople when the type is User. Branches or departments when you change the type. The label on the field changes with the type
PeriodYesEmptyDaily, weekly, two weeks, monthly, three months, six months, yearly
MetricYesSales totalSales total (sales) or Net revenue (revenue). Any other value is stored as sales
Target amountYesEmptyNumber, minimum 0, step 0.01
BranchNoEmptyLimits the sales that count to this branch. Clearable

The form does not ask for a start date or an end date. If both dates are already stored on the row, the calculator uses them. Otherwise it uses the current period:

PeriodRange used
DailyToday
WeeklyMonday through Sunday of the current week
Two weeksMonday of this week through Sunday of next week
MonthlyFirst through last day of this month
Three monthsThe current calendar quarter
Six months1 Jan–30 Jun, or 1 Jul–31 Dec
Yearly1 Jan–31 Dec

What the list shows​

Columns: target type, target, period, metric, date range, target amount, actual amount, completion, branch, and active. ID, date, and performed by are hidden until you show them.

Filters: target type, period, metric, and ID (equals or contains). The dashboard adds a date range (default is the first of this month through today), an employee, branch, or department filter that follows the target type, and a calculation branch.

Completion is actual / target × 100, rounded to two decimals. A target of 0 stays at 0 percent. The list colors that percent under 50 as danger, under 80 as warning, and otherwise success. The limits table still calculates amounts for inactive rows. The dashboard loads only rows that are active and not deleted.

Actual amount counts confirmed sales only: document_type = sales, status 2, not deleted, create_date inside the range, and responsible_contact_id in the people for that target.

Target typeWhose sales count
UserThat user
BranchContacts linked to the branch in contact_branch_connections
DepartmentContacts linked to the department

Sales total sums total_amount. Net revenue sums total_amount minus total_commission_amount. A draft sale does not count.

How to set a weekly sales target​

  1. Open Settings → Other → KPI limits.
  2. Choose Add new.
  3. Set target type to User, then pick the employee.
  4. Set the period to Weekly and the metric to Sales total.
  5. Enter the target amount. Leave branch empty to count every branch, or pick one branch.
  6. Save. The list shows the current week’s actual and the completion percent.

The gauges on KPI Dashboard read these limits. Change the target here. The dashboard does not edit it.