Dashboard Week- Day 3: SQL

Today for Dashboard Week, we were using SQL and Snowflake to pull data out of a database in order to visualise it in Tableau!

Here's the brief!

Investigate a portion of MoVer, a large retail company, managing, selling, and distributing products. Access the Snowflake database, containing various fact and dimension tables related to customer purchases, returns, promotions, warehouse inventory, and customer profiles. MoVer wants to transition to daily data extracts for cost reduction, requiring careful SQL planning for data aggregations, joins, and calculations before importing into Tableau. Focus on a specific business element: find the top 10 selling Store Sales products by revenue, explore demographics influencing these sales, and identify other products bought by these demographics.

Here's the Quick Plan I made:

  1. Database Exploration:
    • Use Snowflake worksheets to explore the Snowflake database.
    • Understand the structure of fact and dimension tables, especially those related to Store Sales, customer purchases, and demographics.
  2. SQL Queries for Top 10 Selling Store Sales Products:
    • Write SQL queries to identify the top 10 selling Store Sales products based on revenue.
    • Utilize the LIMIT clause to prevent querying the entire dataset unnecessarily.
  3. Demographic Analysis:
    • Identify demographic categories contributing most to the sales of the top 10 products.
    • Join relevant tables to gather demographic information and calculate contributions.
  4. Product Affinity Analysis:
    • Determine what other products are commonly bought with the top 10 selling products.
    • Use SQL to find associations and relationships between products.
  5. Tableau Integration:
    • Connect Tableau to the Snowflake database using the identified schema.
    • Utilize the New Custom SQL function to implement the SQL queries for top products, demographics, and product affinities.
  6. Visualization in Tableau:
    • Create Tableau sheets and dashboards to visualize insights.
    • Utilize the 'New Story' feature to organize findings into a cohesive narrative.
  7. Final Presentation:
    • Prepare a final presentation summarizing the investigation, insights, and recommendations.
    • Ensure the presentation addresses MoVer's objectives and provides actionable information for decision-making

Sadly I encounter many issues in todays task. The Schema we were using in snowflake was big (one might say too big...) and because all of my cohort was using the same server, extracting and creating new queries was a very so process.

Even though I managed to connect the store level and customer level data, I didn't end up using it because it was so slow to build with. I had to make a decision between hoping my queries would load or descope and focus on the customer data.

I ended up visualizing the customer data and showcase MoVer's strengths and weaknesses in terms of their customers.

Here was my new plan/sketch:

Here are my dashboards

Author:
Harvey Joyce
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2024 The Information Lab