Credit Card Financial Dashboard
A two-page Power BI report on $57M of credit card revenue, tracked week over week and year to date, built on a star schema from 4 source files.
- overall revenue analysed
- $57M
- of issued cards active
- 57.5%
- of revenue from 3 states
- 68%
- Power BI
- DAX
- Power Query
- PostgreSQL
The problem
A card portfolio needs a weekly view of how revenue, transactions and activation are moving, and which customer segments drive them.
Pipeline
- 4 CSV files
- Power Query
- Star schema
- Expressed asDAX measuresPostgreSQL scripts
- Weekly report
How it works
Four CSV sources (transactions, customers and two address and metadata files) are cleaned in Power Query and modelled as a star schema.
Custom DAX measures compute revenue, week-over-week change, activation and delinquency. The report has two pages: transactions, and customers.
Three PostgreSQL scripts re-express the same model: star-schema DDL, the KPI aggregations, and window functions for running year-to-date revenue, week-over-week change and customer ranking.
The decision
- I chose
- Re-express the model as PostgreSQL scripts beside the Power BI file.
- Instead of
- Keeping the logic only inside the report.
- Because
- A .pbix file is hard to review in a pull request. The SQL versions let anyone read and run the same KPI logic, and each query notes the DAX measure it mirrors.
Results
| Finding | Value |
|---|---|
| Blue and Silver cards, share of transactions | 93% |
| Texas, New York and California, share of revenue | 68% |
| Issued cards that are active | 57.5% |
| Delinquency rate | 6.06% |
What I would do next
- Point the report at a live database instead of static CSVs, using the SQL layer that already exists.