2022: Week 13 - Pareto Parameters

 Challenge by: Jenny Martin

If you haven't had a chance to try out Parameters in Prep yet then here's the perfect opportunity! Have a read of how to create parameters in this blog post. We're going to create a classic use case of the Pareto chart. How many customers make up 80% of our Sales?

Input

There is one input this week detailing customer sales:

Requirements

  • Input the data
  • Aggregate the data to the total sales for each customer
  • Calculate the percent of total sales each customer represents
  • Calculate the running total of sales across customers
    • Order by the percent of total in a descending order
    • Round to 2 decimal places
  • Create a parameter that will allow the user to decide the percentage of sales they wish to filter to
  • Output the data, including the parameter in the output name
  • Create a second output that describes the result in plain English
    • e.g. 50% of Customers account for 80% of Sales 

Outputs

Output 1:
  • 6 fields
    • Customer ID
    • First Name
    • Last Name
    • Sales
    • % of Total
    • Running % of Total Sales
  • The number of rows will depend on the parameter. For 80% we have 347 rows (348 including headers)
Output 2:
  • Just the 1 field and 1 row
You can download the full outputs here

After you finish the challenge make sure to fill in the participation tracker, then share your solution on Twitter using #PreppinData and tagging @Datajedininja@JennyMartinDS14 & @TomProwse1

You can also post your solution on the Tableau Forum where we have a Preppin' Data community page. Post your solutions and ask questions if you need any help! 



Popular posts from this blog

2024: Week 1 - Prep Air's Flow Card

2023: Week 1 The Data Source Bank

How to...Handle Free Text