Analizar las ventas de un e-commerce brasileño: responder preguntas de negocio con SQL y presentar los resultados en un dashboard interactivo.
Brazilian E-Commerce Public Dataset by Olist (Kaggle), ~100 mil pedidos (2016-2018).
- Exploración y preguntas de negocio en SQL Server (
sql/01ysql/02). - Vista
v_ventasque une pedidos, productos, clientes y categorías (sql/03). - Dashboard en Power BI conectado a la vista, con medidas en DAX.
- Validaciones (
sql/04_validaciones.sql): comparación de las métricas del dashboard contra consultas SQL.
- Solo pedidos con estado
delivered. - Se excluyen septiembre y octubre de 2018 (datos incompletos).
- Ingreso = suma de
price(sin flete). - Categorías traducidas al inglés con la tabla oficial del dataset.
- Métricas del dashboard validadas contra consultas SQL.
Nota: las consultas de
sql/02no excluyen septiembre y octubre de 2018, por eso sus cifras pueden diferir ligeramente de las del dashboard.
- Ingreso total de 13.22M y ticket promedio de 137.
- São Paulo concentra ~38% del ingreso (5.07M).
- El ingreso mensual creció durante 2017 y se estabilizó entre 0.8M y 1.0M en 2018.
- Categorías líderes: health_beauty, watches_gifts y bed_bath_table.
SQL Server (T-SQL), Power BI Desktop, DAX
Los CSV no están incluidos en el repositorio.
- Descargar el dataset de Kaggle.
- Importar los CSV a SQL Server (SSMS → Import Wizard).
- Ejecutar los scripts de
sql/en orden (01 → 04). - Abrir
powerbi/olist_dashboard.pbixy actualizar la conexión a tu instancia.
Analyze the sales of a Brazilian e-commerce store: answer business questions with SQL and present the results in an interactive dashboard.
Brazilian E-Commerce Public Dataset by Olist (Kaggle), ~100k orders (2016-2018).
- Exploration and business questions in SQL Server (
sql/01andsql/02). v_ventasview joining orders, products, customers and categories (sql/03).- Power BI dashboard connected to the view, with DAX measures.
- Validations (
sql/04_validaciones.sql): dashboard metrics checked against SQL queries.
(v_ventas and 04_validaciones.sql are Spanish file names.)
- Delivered orders only.
- September and October 2018 excluded (incomplete data).
- Revenue = sum of
price(excluding freight). - Categories translated to English using the dataset's official table.
- Dashboard metrics validated against SQL queries.
Note: the queries in
sql/02do not exclude September and October 2018, so their figures may differ slightly from the dashboard.
- Total revenue of 13.22M and average order value of 137.
- São Paulo accounts for ~38% of revenue (5.07M).
- Monthly revenue grew during 2017 and stabilized between 0.8M and 1.0M in 2018.
- Leading categories: health_beauty, watches_gifts and bed_bath_table.
SQL Server (T-SQL), Power BI Desktop, DAX
The CSV files are not included in this repository.
- Download the dataset from Kaggle.
- Import the CSV files into SQL Server (SSMS → Import Wizard).
- Run the scripts in
sql/in order (01 → 04). - Open
powerbi/olist_dashboard.pbixand update the connection to your instance.
