zmsantos08's avatar
zmsantos08
Regular Visitor
8 months ago

Make Margins Great Again - Superstore Sales Analytics

Make Margins Great Again - Superstore Sales Analytics

This report transforms the classic Superstore dataset (adapted) into a fully documented, enterprise-grade analytics solution built on a Fact Constellation Schema with two fact tables (Sales & Target), conformed dimensions and a normalised product hierarchy.

Key Features:

🎯 Dynamic KPIs β€” Revenue, Profit, Margin and Cost cards with SVG sparklines, YoY growth, target tracking and progress bars, all switchable between YTD, QTD and MTD via a TimeFilter parameter;

🌍 Geography Page β€” Revenue by state choropleth map, city efficiency scatter plot with K-Means clustering (6 segments: Small Markets, Contributors, Big Contributors, Flagship Cities, High Margin Cities, Margin Risk) and a detailed city-level matrix with trending indicators;

πŸ“¦ Product Analysis β€” Sub-category efficiency scatter plot with K-Means product clustering (5 segments: Star Products, Niche Performers, Contributors, Core, Loss Drivers);

πŸ”’ Dynamic Details Matrix β€” A fully flexible matrix with conditional formatting allowing one-click switching between dimension (Region, State, City, Category, Sub-Category), metric (Revenue, Profit, Margin, Cost, Shipping) and aggregation using field parameters β€” turning one visual into dozens of analytical views;

βš™οΈ Tariff Scenario Analysis β€” What-if modelling for tariff rates and price increases showing adjusted revenue, cost, profit and margin with a waterfall decomposition chart;

πŸ“– Dynamic Data Dictionary β€” A fully searchable, filterable documentation page powered by INFO.VIEW() functions covering all measures, columns, tables and relationships with descriptions, DAX expressions and object type filtering.

Technical Highlights:

  • Fact Constellation Schema with snowflake product dimension
  • 80+ DAX measures with full descriptions via TMDL
  • SVG sparklines and progress bars as ImageUrl calculated measures
  • Field parameters for dynamic dimension, metric and aggregation switching
  • Target data sourced from 5 separate CSVs merged into a single Target Table
  • Single staging query ETL pattern in Power Query
  • Full semantic model documentation via TMDL descriptions

Here you can download the PBIX file.

2 Replies

  • jdow's avatar
    jdow
    Frequent Visitor

    Thank you for this amazing .pbix  your work is impeccible 

    • zmsantos08's avatar
      zmsantos08
      Regular Visitor

      Thank you for the words jdow!
      It definetely took some time to build and polish everything, so I appreciate it.
      Take care.