Create buckets based on attributes