Hi
I have the data of customers and their Sales by Category and Sub-Category. Screenshots shown below of Tableau Superstore Sales data. Please ignore red shading.
We want to assign customers to a percentile buckets like "First", "Second", "Third" , "Fourth" and "Inactive" based on their Sales within particular Category against the entire population’s. In-actives are with Zero Sales
Similarly bucketing based on their Sales within Particular Sub-Category when users will see the data /drill-down at Sub Category level.
First- 100 to 75th Percentile
Second - 50 to 75th Percentile
Third - 25th to 50 Percentile
Fourth - 0 to 25th Percentile
Inactive - Customers with Zero sales within that Category/Sub -category are classified as In-actives.
We want to pre-calculate these bucketing to avoid run time calculations at Tableau for better performance and understand its possible at run time.
Any suggestions would be really helpful.

