Learning Objectives

By the end of this chapter, you will be able to:

  • Define BI and state what it answers that OLTP cannot.
  • Group BI flow into sources, pipeline, store, logic, and surface.
  • Group KPIs by finance, branch, and guest with one threshold each.
  • Name BI tools by layer for a retail or hotel firm in Nepal.
  • Price a BI loop in NPR dated BS 2081.

One screen that ties the till to the kitchen

On 2081-08-12 a mart and lodge group opens one screen. Cooking oil margin in Butwal falls, occupancy in Lakeside is 62 percent, net VAT for Shrawan is Rs 17,150. Three sources gave that screen: POS, PMS, and finance. BI is the collection, integration, analysis, and presentation that turns rows into a decision on the same day. It answers what happened, where, and why for past and present. Prediction belongs to analytics that follows BI.

flowchart LR
  S1[POS and PMS] --> ETL[ETL]
  S2[Purchases and stock] --> ETL
  ETL --> DW[(Warehouse)]
  DW --> OLAP[OLAP and SQL]
  OLAP --> DASH[Dashboard with thresholds]

If any hop fails, the dashboard shows a pretty lie.

Framework 1: The BI pipeline, grouped

A. Sources, truth at entry

OLTP at counter: POS, PMS, purchases, loyalty, web. Quality set here. Duplicate GuestID or two codes for Butwal poison every chart tomorrow. No warehouse fixes a dirty till.

B. Pipeline, ETL

Extract from every source, transform by fixing codes, removing duplicates, applying 13 percent VAT logic, then load nightly with lineage so auditor traces net VAT to bill lines.

C. Store, warehouse

Subject by product and guest, integrated, time variant so 2081 compares to 2080, non volatile so last quarter does not shift when a clerk edits.

D. Logic, OLAP and SQL

Slice by outlet, dice by SKU and month, drill from quarter to week to bill. A manager who sees oil falling in Butwal drills to SKU and to week to find a competitor price cut.

E. Surface, dashboard

Charts that display KPIs with colour. Alerts fire when metric crosses threshold and the owner is on a phone, not at a desk.

Hop Failure if skipped
Source Two phones for one member splits every KPI
ETL Butwal splits into two outlets
Warehouse No history to plan Dashain stock
OLAP No drill to competitor discount
Dashboard Manager never sees cross threshold

Framework 2: KPIs and dashboards, grouped for a BBM firm

A. Finance, money must tie to VAT

KPI Definition Threshold
Net VAT payable Output minus input Variance over Rs 5,000 before filing
Gross margin by SKU Sales minus cost divided by sales Below 12 percent two weeks in a row
Cash ratio Till plus bank divided by payables next 7 days Below 1.0, hold orders

B. Outlet or property, where work happens

KPI Definition Threshold
Sales per outlet Gross sales per outlet per day Drop over 18 percent versus prior week
Occupancy rate Rooms sold divided by rooms available Below 55 percent for a week, price action
Stock out Lines out of stock divided by lines ordered Above 5 percent, review reorder

C. Guest or member, retention and risk

KPI Definition Threshold
Average bill value Revenue divided by bills Fall over Rs 120 for two weeks
Repeat visit rate Return guests divided by total guests Below 22 percent for a lodge
Collection lag Days between due and receipt for credit sales Average over 6 days

Tool mapping for an SME:

  • Excel plus Pivot: single outlet test.
  • Looker Studio: free with Google.
  • Power BI: default in Nepal for MySQL, Rs 1,200 per user per month.
  • Tableau: heavier, for a group with large warehouse.
Reporting Source count Time User Action
Operational One OLTP Now Cashier Post and serve queue
BI Many through warehouse History to trend Manager Reallocate stock, reprice room

Related: database models, business advantages, web based multimedia.

Nepal worked example: one dashboard on BS 2081-08-12 (NPR)

Butwal cooking oil down 22 percent week on week, Pokhara lodge occupancy at 62 percent versus 71 percent prior week, net VAT for Shrawan Rs 17,150. Warehouse tells why: competitor discount Rs 35 per litre for five days in Butwal, rain diverted bookings to competitors with covered parking. Action costs: transfer 600 litres holding cost Rs 8,200, rate cut Rs 200 for 18 rooms for three nights at cost Rs 10,800 in foregone rate plus Rs 18,000 marketing = Rs 37,000. Benefit in fourteen days is holding Rs 4,80,000 grocery margin and filling 14 room nights at Rs 6,500 = Rs 91,000.

Finance side same date: taxable Rs 2,40,000, output = 2,40,000 x 0.13 = Rs 31,200, input Rs 14,050, net Rs 17,150. Branch split Butwal Rs 18,200 and Pokhara Rs 13,000 tied to same ETL. Last quarter sheet understated Rs 2,340 because Pokhara file arrived late. Lineage blocks repeat.

Cost: warehouse VM Rs 2,400 a month, storage Rs 1,800, Power BI for three managers Rs 3,600, ETL build one time Rs 65,000, plus support Rs 5,000 a month already budgeted for the DBMS.

Self-check

Try this: from source to VAT (calculable)

Taxable Butwal mart Rs 1,40,000 and Pokhara lodge Rs 1,00,000, input Rs 14,050 on 2081-08-12.

  1. Compute total taxable, output at 13 percent, net payable.
  2. Compute branch outputs and prove sum equals total.
  3. If late Pokhara file Rs 18,000 omitted, compute corrected total, corrected output, corrected net, and understated amount. State which hop failed.
  4. Occupancy 62 percent versus threshold 55 percent. Which KPI group and what action.
Answer sketch 1. Total 2,40,000, output 31,200, net 17,150. 2. Butwal 18,200, Pokhara 13,000, sum 31,200. 3. Corrected total 2,58,000, output 33,540, net 19,490, understated 2,340. Failure is ETL extract if file never entered or warehouse if lineage missing. 4. Outlet KPI. Above threshold, no price action yet, but watch trend for three more days.

Summary

  • BI is pipeline from source to decision with ownership at each hop.
  • Warehouse holds history, OLAP slices, KPIs threshold, dashboards surface.
  • One mart plus lodge screen ties POS and PMS to the same VAT truth.

Key Takeaways

  • One pipeline, many sources, one history.
  • Thresholds turn numbers into work.
  • Lineage turns chart into evidence for IRD.

Discussion Questions

  1. What separates BI from an operational report that a cashier uses at the till.
  2. Why does duplicate GuestID break both occupancy and VAT KPIs.
  3. When does ETL failure cost more than a warehouse delay.

Exercises

Short answer

  1. Define BI and list its five hops with one line on each.
  2. Name one KPI per finance, outlet, and guest with its threshold.
  3. What is OLAP and what does drill do for a retail SKU.

Long answer

  1. Describe pipeline from source to dashboard with 2081-08-12. Show net Rs 17,150 from Rs 2,40,000 and branch split Butwal Rs 18,200 and Pokhara Rs 13,000.
  2. Group KPIs into finance, outlet, and guest. Show occupancy and Rs 37,000 action cost that protects Rs 91,000 of lodge revenue.