Market analyses, sectors and segments
Open Analytics → Market with view:market_analysis. Analysis creation/runs require manage:market_analysis; sector mappings require manage:market_sectors, segment creation/deletion manage:market_segments. A visible form does not replace the corresponding permission.
Prepare and create
On the first successful empty-list visit, a manager can trigger automatic preparation: initial mappings, province segments, first analysis and calculation. This writes data; it does not run for a reader or when an analysis already exists. If asked for prospects, open Prospecting and prepare actual source records first. Review the prepared mappings rather than assuming they fit every business.
Choose New analysis. Enter a nonempty name, maximum 120 characters; choose Market presence or Commercial traction, period 1–120 months and minimum sample 0–1,000 (defaults 12 months/5). The form uses all sectors and segments; it has no subset picker or framework-weight editor. Submit, check the list and open the analysis. Cancel closes and resets the draft. A creation is not yet a completed calculation.
Run and interpret
Run now starts a version. Wait through Queued/Running; the detail refreshes about every 3 seconds while a run is active. Another run for the same analysis is refused while one is active. Check its error if Failed and inspect AI jobs for the registered work. Only Done versions can be selected; the default is the most recent completed version. Starting a new one does not make old results current.
Switch Sector, Segment or Gaps: these read the same cells rather than launch three calculations. The heatmap displays score, sample size and below-threshold information; a dash is missing/unscored, not zero. The mounted matrix has no cell drill-down action. Sector/segment rankings exclude missing and below-threshold scores; usable cells are sample-weighted, or averaged equally if no weights exist. Gaps deliberately include missing, below-threshold and bottom-quartile scores only in segments at or above median attractiveness. They suggest research targets, not proof of demand or a sales forecast.
Read the considered, unmapped, empty and below-threshold counts. Fix unmapped sectors before interpreting apparent gaps. A changed definition warning means versions are not directly comparable. Runs are retained by recency rules, not as a permanent archive; preserve needed findings separately.
Map sectors and build segments
Sectors lists pending source labels and their counts. Choose a canonical sector on a row; it saves immediately, without a separate Save/Cancel. Verify the row/result after an error. Existing completed runs remain snapshots; run a new version to reflect changed mappings.
Segments offers New segment, name (maximum 80 characters), All/Any conditions and Add condition. Choose field, compatible operator and value. Text supports equality, list, contains or null; numeric score also supports bounds/between. Enter lists and between bounds comma-separated, with exactly two numeric bounds for between.
Null needs no value and is valid only for nullable fields. Changing field resets that row’s operator/value. The form has no condition-removal or existing-segment editor: review before creating. Its slug derives from the name and must be nonempty, unique and at most 60 characters after normalization; use a concise name with letters/numbers if validation fails.
Submit and verify the list. Delete is immediate without confirmation, removes the segment from future resolutions and leaves past runs readable. Do not delete to repair a failed calculation without first inspecting its cause.