MDMansur DaganeProject brief

PERSONAL PROJECT / PYTHON & DATA VALIDATION

A sales total is easy.
A trustworthy rate
takes more.

Sales Analytics Dashboard brings sales, activity and shift records together — and stops incomplete data from becoming a misleading KPI.

PythonpandasCSV / ExcelJavaScript

From a sales problem
to a software project.

Working in sales made the problem concrete: a good-looking total can hide missing hours, withdrawn deals or a different reporting period. This prototype checks the records before comparing performance.

FocusData quality & reporting
AuthorMansur Dagane
DevelopmentPersonal project, AI-assisted

TRY THE KEY BEHAVIOUR

Change the input.
Watch the decision change.

Switch between two examples generated by the Python app. The missing shift has zero sales — but excluding its working time would still distort the rate.

Interactive walkthrough · example records

A report that checks its inputs.

Choose an input scenario

Data check passed. The work schedule and activity log match for all three shifts.

Sales
12
Retained sales
9
Hours logged
6
Retained sales per hour
1.5

Sales by shift

Monday5
Tuesday7
Wednesday0

Where the time went

Calls
120 min
CRM
120 min
Follow-up
80 min
Waiting
40 min

Suggested next action

Clarify expectations before the sale

All 3 withdrawals in the example were logged as unmet expectations.

Test a short summary of what the deal includes before confirmation. Compare the share of retained sales in a later, comparable period.

Example data, three shifts.Values are calculated by Python; this browser demonstration switches between saved results.

THE ACTUAL APPLICATION OUTPUT

Explore the generated report.

Explore the generated report in the application’s own interface. It carries the same calculations into a standalone HTML report and an Excel-ready KPI export.

Sales Analytics / generated report

HOW IT WORKS

One calculation engine.
Several useful outputs.

INPUT

Sales + activity + schedule

CSV and Excel files

VALIDATION

Check before calculating

Coverage, dates, identifiers and totals

PYTHON ENGINE

Calculate & explain

Retained sales, hours and next action

OUTPUT

Dashboard + report + CSV

Same calculations in every view

The important design choice

The work schedule defines which days must be present. An activity log alone cannot tell whether a missing day means no work or missing data. Incomplete coverage withholds the rate instead of treating unknown time as zero.

if missing_shift_records:
    retained_sales_per_hour = None
    next_action = "Restore missing activity"

Simplified illustration of the validation rule.

What the local app adds

  • Preview and validate CSV or Excel imports before changing the active dataset.
  • Save an improvement action with its baseline, then compare a later period.
  • Export a self-contained report and a KPI file for Excel.
  • Keep calculations in Python rather than implementing a second set of rules in the browser.

Checks behind the interface

Independent control valuesKnown inputs are checked against hand-calculated results.

Missing and invalid recordsMissing shifts, duplicate IDs and invalid imports are covered by tests.

State and export integrityFailed writes preserve the previous state; exported values match the calculation engine.

INSPECT THE EXAMPLE

Follow the data yourself.

Download the small input files used in this demonstration.

Sales records

Closed, retained and withdrawn deals.

Sales CSV

Work schedule

Every expected shift, including days with no sales.

Schedule CSV

ABOUT THE WORK

Built from experience.
Developed through testing.

Defined the problem, selected the KPIs and shaped the workflow from my sales experience. Developed the prototype with AI assistance and checked its behaviour with Python tests and browser checks.

Read the one-page brief