an aside, being funny in this context is where everyone gets a benefit of being happier. some types of humor is denigrating to a particular group or person and that's generally not going to take you very far in a lot of fields.
There is a fine line between being offensive and being funny. I think the funniest people go very close to that line, but maybe that's just the type of humour I appreciate. I tone my homour down a lot at work compared to when I am with good friends as there are a lot more consequences to going over the line.