1

I want to build a logic in tableau for grouping customers. Basically I want to see a bar graph comparison of customers sales with below logic:

  1. Customers whose respective sum of sales is less than 100,000 are grouped as "Others" and shown as one bar

  2. Customers whose respective sum of sales is more than 100,000 are shown as individual bars

Please let me know if there is a solution already discussed for this query or for any further details needed to support my question, thanks

feb
  • 79
  • 1
  • 1
  • 8

1 Answers1

2
if {fixed [Customer Name] : sum([Sales])} > 100000 then
   [Customer Name]
else
   "Other"
end
Alex Blakemore
  • 11,301
  • 2
  • 26
  • 49
  • Alex, appreciate your help! Your solutions perfectly fits my requirement, thanks a lot – feb Nov 11 '17 at 09:49
  • 2
    I would like to add that if you create a parameter and use that instead of 100000, then your dashboard users will be able to set the threshold to whatever they want. Using a parameter will make your dashboard a bit more interactive and you will have less maintenance to do when someone wants the threshold changed. – Sam M Nov 12 '17 at 05:10