Analysis only matters when it changes a decision. Business Intelligence (BI) is the craft of turning data into dashboards and reports that executives actually use. This module covers the enterprise tools — Power BI and Tableau — plus how to automate reporting and communicate like a trusted advisor.
1KPIs, metrics & framing the question
A KPI (Key Performance Indicator) is a metric tied to a goal. Good BI starts not with charts but with the question the business needs answered.
| Concept | Meaning |
|---|---|
| Metric | any number you can measure (e.g. page views) |
| KPI | a metric that tracks a goal (e.g. monthly revenue vs target) |
| Leading indicator | predicts the future (e.g. trial sign-ups) |
| Lagging indicator | confirms the past (e.g. quarterly revenue) |
A dashboard usually leads with a few headline KPIs, then a trend, then a breakdown:
- A KPI is a metric tied to a goal; start BI from the business question, not the chart.
- Leading indicators predict; lagging indicators confirm — track both.
- Show every KPI against a comparison (target or prior period) so it carries meaning.
2Power BI: data modelling & DAX
Power BI is Microsoft's BI tool. Two skills make you productive: modelling your tables into a star schema, and writing DAX measures.
Total Sales = SUM ( Sales[Amount] )
Sales LY = CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( Dates[Date] ) )
Sales YoY % = DIVIDE ( [Total Sales] - [Sales LY], [Sales LY] )- Model data as a star schema: one fact table (events) linked to dimension tables (descriptions).
- DAX measures (e.g.
SUM,CALCULATE,DIVIDE) compute on the fly as users filter. - Use measures for totals and ratios; reserve calculated columns for per-row values.
3Tableau: dashboards & storytelling
Tableau is the other industry-standard BI tool, loved for fast, drag-and-drop exploration and polished dashboards.
The core workflow
- Connect to data (a file, a database, or a published source).
- Build worksheets by dragging fields onto Rows, Columns and Marks.
- Calculated fields add new logic, e.g.
Profit Ratio = SUM([Profit]) / SUM([Sales]). - Parameters let viewers change inputs (e.g. a Top-N slider) interactively.
- Dashboards combine worksheets; Story points sequence them into a narrative.
- Tableau workflow: connect → build worksheets → calculated fields → parameters → dashboard/story.
- Calculated fields and parameters add logic and interactivity for viewers.
- Power BI and Tableau share the same concepts — learn the ideas, switch tools freely.
4Automating Excel reports with Python
Many businesses still run on Excel. Instead of rebuilding a report by hand each week, generate it with Python — formatted, accurate and instant.
import pandas as pd
sales = pd.read_csv('sales.csv')
summary = sales.groupby('region', as_index=False)['amount'].sum()
# write a formatted, multi-sheet Excel workbook
with pd.ExcelWriter('weekly_report.xlsx', engine='xlsxwriter') as xl:
sales.to_excel(xl, sheet_name='Raw', index=False)
summary.to_excel(xl, sheet_name='Summary', index=False)
book = xl.book
sheet = xl.sheets['Summary']
money = book.add_format({'num_format': 'Rs #,##0', 'bold': True})
sheet.set_column('B:B', 16, money) # format the amount column
print('weekly_report.xlsx created')weekly_report.xlsx created
xlsxwriter is great for creating richly formatted files (colours, number formats, even charts); openpyxl can also read and edit existing workbooks. Pandas' to_excel uses either under the hood.pd.ExcelWriterwrites multi-sheet, formatted Excel files programmatically.xlsxwritercreates richly formatted workbooks;openpyxlalso edits existing ones.- Automating a recurring report removes copy-paste errors and saves hours every week.
5Scheduling automated reports
The final step in automation is making a report run by itself on a schedule, so it lands in stakeholders' inboxes without you lifting a finger.
# Linux / macOS — cron: run report.py every Monday at 8:00 AM
0 8 * * 1 /usr/bin/python3 /home/analyst/report.py:: Windows — Task Scheduler (one-time setup, then it repeats)
schtasks /Create /TN WeeklyReport /TR "python C:\reports\report.py" /SC WEEKLY /D MON /ST 08:00- Schedule scripts with cron (Linux/macOS) or Task Scheduler (Windows) to run reports unattended.
- A full pipeline: pull data → build report → email it → scheduler triggers it on a cadence.
- Add logging and failure alerts so a broken job never silently serves stale data.
6Stakeholder communication & data privacy
Your final, highest-paid skill is communication — turning analysis into a decision a non-technical leader can act on.
Lead with the answer
Use the pyramid principle: state the recommendation first, then the key reasons, then the supporting detail. Executives want the “so what” in the first sentence, not on slide 14.
- Translate stats into business language: not “p = 0.01” but “we are confident this is a real ₹2L/month opportunity.”
- One message per slide; a clear title that states the takeaway.
- Anticipate the “why” and “what should we do” questions.
Handle data responsibly
| Principle | What it means for you |
|---|---|
| Data minimisation | collect/keep only what you actually need |
| Purpose limitation | use data only for the stated purpose |
| Anonymisation | remove or mask personal identifiers (PII) before sharing |
| Consent & rights | respect opt-outs and deletion requests |
- Lead with the recommendation (pyramid principle); translate statistics into business impact.
- One message per slide, with a title that states the takeaway.
- Follow privacy law (GDPR/DPDP): minimise, anonymise PII, respect consent, and secure personal data.
★ Hands-on Project — Executive KPI Dashboard
Build a polished, interactive executive dashboard (in Power BI, Tableau, or Streamlit) connected to a data source, plus an automated supporting report.
- Pick 3–5 headline KPIs that answer a real business question (e.g. revenue vs target, orders, AOV, repeat-rate).
- Model the data: a fact table (sales) linked to dimensions (date, product, region/customer).
- Build the dashboard: KPI cards on top, a trend line, and a breakdown bar — with at least two interactive filters.
- Add a calculated measure/field (e.g. YoY % growth or profit ratio) and show each KPI vs a comparison.
- Write a Python script that generates a formatted Excel summary of the same numbers with
pd.ExcelWriter. - Schedule the script (cron or Task Scheduler) to refresh weekly, with basic logging.
- Write a one-slide executive summary using the pyramid principle (recommendation first).
- Ensure no personal identifiers are exposed; aggregate where needed. Publish/share the dashboard and add it to your portfolio.
Ready to test yourself?
Take the module quiz. Score 70% or more to mark this module complete.
Start the quiz →💡 Log in to save your progress and earn the certificate.