Video | Tableau | Data visualisation

The IN operator

The new IN operator finally lets you bin those endless OR statements and even check values against a set.

  • The IN operator lets you replace long OR-based calculations with simpler, more maintainable syntax by checking a value against a bracketed list of expressions
  • You can use a double forward slash to comment out lines within a Tableau calculation
  • Changing a calculation's data type to true/false may require removing and re-adding the field on a shelf to refresh it
  • The IN operator can check a value against a set, not just a list of literals
  • Combining IN with set actions lets dashboard users dynamically build their own selection list, with parameters usable on either side

Tableau release note: Use the IN operator in calculations to test whether a specified value matches any value in a list of comma-separated values, a set, or combined fields like City/Region combinations. The IN operator supports string, numeric, date and boolean data types.This video is part of a larger playlist on Tableau 2020.3. Be sure to check out other videos in the playlist and subscribe for more content.https://tableautim.com -------Join my Discord Server. https://discord.gg/shBuxXr it’s a little sparse at the moment but hang in there.