An interactive business intelligence dashboard built with Quarto and Shiny with Python that serves as a sophisticated decision-making tool for optimizing discount strategies based on complex business logic and price elasticity analysis.
This dashboard transforms complex sales data into actionable discount optimization insights. It enables businesses to make data-driven decisions on discount strategies by analyzing multiple dimensions including price elasticity, customer segments, regional performance, and historical trends.
Access the live decision-making tool here: https://sajjadahmadi-discount-strategy-dashboard.share.connect.posit.cloud/
Core Framework
- Quarto: Modern publishing system for analytical dashboards
- Shiny for Python: Interactive web application framework
- Custom CSS and JavaScript: Enhanced UI/UX
- Select the target year using the year filter
- Choose the region for analysis (All Regions or specific region)
- Set company strategic goals
- Select customer priority segments
- Review the generated discount strategy recommendations
- dataset provided in
/dataset/sample_-_superstore.csv
dashboard.qmd- Main dashboard with table renderingcomponents/table_logic.py- Data processing logiccomponents/table_visual.pyusing great table to visualize the table- Custom CSS/JS for enhanced functionality in the navbar-filter.lua and styles.css
The main table uses Great Tables library with:
- Conditional formatting based on business rules
- Dynamic filtering based on user inputs
- Custom styling for better readability
- Clone the repository
- Install Quarto CLI
- Install Python dependencies:
pip install -r requirements.txt - Run the dashboard locally:
quarto preview dashboard.qmd - Open your browser to the local server address
- For deploying on https://connect.posit.cloud/
- Run
quarto render --output-dir _build - Select shiny server
- Choose app.py in _build folder as main python file