Page 1: Revenue overview
The first page covers the headline numbers and how revenue moves over time.
Power BI, DAX, PostgreSQL views · Report and SQL on GitHub
A two-page Power BI report on the Olist Brazilian e-commerce dataset: 99K+ orders, 96K customers and $16.0M in revenue. It extends my SQL analysis of the same data from static query results into a report that can be filtered by customer decile, state and date range.
The first page covers the headline numbers and how revenue moves over time.
The second page shows how few customers come back, and how long the ones who do take.
The processing happens in PostgreSQL views, so the logic is reusable and can be checked outside Power BI. Power BI handles the model, slicers and cross-filtering.
The Power BI model uses orders_enriched, customer_summary, cohort_table, a date table (Dim_Date) and geolocation. A DAX measure controls the heatmap colouring so that month 0, which is always 100%, does not wash out the differences between later months.