Project · Daily cash dashboard
Showing where the cash comes from: 76% by credit card
The problem
The owner learns how much cash came in only at month end, from a spreadsheet nobody trusts, so late payments and weak days are found too late.
The solution
A Power BI cash page on a six-layer warehouse with a star schema: money in by day, payment method and region, what is still due on instalments, and what is late, with every total matching the source.
How it works
- Load: Orders and payments by method, instalment and day, loaded as they are into the Bronze layer
- Clean: The Silver layer types and keys the same rows
- Rules: The Gold layer defines cash in, cash still due and late payments once
- Model (star schema): The Semantic layer: a star schema with a date table, so every day, month and year adds up
- Report: A daily cash page: what came in, what is due and what is late
A closer look



The code
select
i.payment_id,
i.order_id,
i.instalment_no,
i.instalments,
i.payment_type,
i.customer_state,
i.order_date,
i.cash_date,
i.amount,
case when i.cash_date is null then 'Never paid'
when i.cash_date <= r.report_date then 'Received'
else 'Due'
end as status,The impact
- Cash in by day on one page, so a weak day shows before month end.
- Instalments still due and late payments listed.
- The payment methods and regions that bring the money in.
The result
103,886 payments: 76% of the cash in arrived by credit card, and 9.7% of the money was still due on card instalments.