An interactive analytics dashboard built with SQL, Pyhton, Excel, Streamlit, Pandas, and Plotly to visualize guest behavior and sales performance from a public dataset on Kaggle (https://www.kaggle.com/datasets/rajatsurana979/fast-food-sales-report). This project aligns with the role of a Guest Intelligence Analyst by analyzing customer data, identifying trends, and presenting insights in a usable interface.
Try the Dashboard on Streamlit Cloud
- SQL Views: Data was pre-processed and aggregated using SQL Server, then exported as CSVs
- Powerful Visuals: Interactive KPIs, bar charts, pie charts, and a monthly heatmap
- Cloud-Deployable: Hosted on Streamlit Cloud
- Modular Codebase: Organized by data view for easy updates or expansion
-
SQL Server:
- Designed and created 8 SQL views to clean, transform, and aggregate raw transactional data.
- Used:
SELECT
,FROM
,WHERE
, andJOIN
statements to merge sales and item dimensionsGROUP BY
,ORDER BY
, andCOUNT
/SUM
for aggregation logicCASE
statements for classifying revenue tiers (e.g., Low / Medium / High orders)DATEPART()
andCONVERT()
functions to break dates into day, month, and weekday- CTEs (Common Table Expressions) to handle funnel stages and top-performers logic
- Window functions like
RANK()
andROW_NUMBER()
to extract top 3 items by type
-
Pandas:
- Loaded and cleaned CSVs exported from SQL
- Standardized column names and converted date fields
- Performed grouping and aggregation (e.g., monthly revenue trend)
-
Plotly Express:
- Bar charts for top items and categories
- Pie charts for time-of-day and order tier breakdowns
- Line chart for revenue over time
- Heatmap for time-of-day vs month revenue performance
-
Streamlit:
- KPIs using
st.metric()
- Interactive layout with
st.columns()
andst.subheader()
- Easy deployment and caching with
@st.cache_data
- KPIs using
- Insight: Revenue peaked between April and July 2022, with a sharp drop starting March 2023.
- Actionable Takeaway: Monitor what operational or seasonal factors contributed to the early 2022 success, and investigate the cause of 2023’s decline.
- Insight: Cold Coffee, Sugarcane Juice, and Panipuri are top sellers by volume.
- Actionable Takeaway: Consider upsell combos or promotions featuring these top items.
- Insight: Beverages outperform Fast Food in total revenue.
- Actionable Takeaway: Focus on expanding beverage offerings or bundling them with food for increased average order value.
- Insight: Sales are highest in the Afternoon and Night.
- Actionable Takeaway: Optimize staffing and inventory during these peak time slots.
- Insight: Online and cash transactions are evenly split in revenue share.
- Actionable Takeaway: Maintain both payment infrastructures and analyze preferences by customer segment.
- Insight: 76.7% of orders fall into the High revenue tier.
- Actionable Takeaway: Introduce incentives to increase order value and shift more transactions into the Medium/High tiers.
- Insight: Beverages consistently dominate both volume and ranking across item types.
- Actionable Takeaway: Consider loyalty rewards or featured promotions based on beverage sales patterns.
- Insight: Nights in Q2 and Q4 of 2022 showed consistently high revenue; early 2023 and beyond underperformed.
- Actionable Takeaway: Replicate successful marketing/timing strategies from 2022 to recover post-2023 declines.
- Dataset:
Fast Food Sales Report
- Raw data downloaded and imported into SQL Server for preprocessing.
- Created 8 SQL Views for:
- Aggregating revenue by item, category, transaction type, and time
- Ranking top products using
ROW_NUMBER()
andRANK()
- Categorizing revenue tiers using
CASE
- Parsing datetime into multiple dimensions (month, time of day)
- Exported SQL views to
.csv
- Cleaned column names and ensured datetime formats were standardized
- Grouped, sorted, and restructured data for visualization
- Generated:
- Bar charts (top items, item types)
- Pie charts (time of day, transaction types, revenue tiers)
- Line chart (monthly revenue)
- Heatmap (revenue by month vs. time of day)
- Built dashboard using
st.metric()
,st.columns()
, andst.plotly_chart()
- Deployed using Streamlit Cloud