US Superstore Margin Analysis
DuckDB SQLDiagnostic SQL analysis across 9,994 retail rows ($2.30M sales, $286.4K profit) isolating margin erosion across 49 states and 17 sub-categories. Dashboard built via AI prompting.
- Division & State Audit: Isolated Furniture margin compression (
2.49%) and 10 loss-making states (-$98,246.74) driven by 28%–39% average discounts. - Root-Cause Isolation: Verified that flat 30% discounts—not shipping tiers—drive Texas losses, led by Binders (
-$12,166.62) and Appliances (-$4,252.27).