Tableau Essentials: Calculated Fields – User Functions

Data

Tableau Essentials: Calculated Fields – User Functions

Not everyone is a Tableau guru, at least not yet. To help Tableau rookies, we’re starting from square one with the Tableau Essentials blog series. The series is intended to be an easy-to-read reference on the basics of using Tableau Software, particularly Tableau Desktop. Since there are so many cool features to cover in Tableau, the series will include several different posts.

In today’s article, we’ll examine User Functions that you can use as part of the Create Calculated Field tool. To access this window, right-click on either the Measure or Dimension window and select Create Calculated Field. Then, select User from the function drop-down menu.

The user functions allows you to create filters based on your data source and reference the identity, domain, and membership of the current user on Tableau Server or Tableau Online. Let’s now examine the different types of User Functions:

FULLNAME Function

FULLNAME( )

The FULLNAME function will return the full name for the current user. This is the Tableau Server or Tableau Online name when the user is signed in. Barring that, it is the local or network full name for the Tableau Desktop user. Here’s an example:

[Author]=FULLNAME() = ‘Carly Capitula’

ISFULLNAME Function

ISFULLNAME(string)

This function returns true if the user’s full name matches the specified string or false if it does not match. Here’s an example:

ISFULLNAME(“Carly Capitula”) = TRUE

ISMEMBEROF Function

ISMEMBEROF(string)

The IsMemberOf function returns true if the logged-in person currently using Tableau is a member of the group that matches the string. If the person is not signed in, then it returns false. Here’s an example:

ISMEMBEROF(“INTERWORKS”) = TRUE

ISUSERNAME Function

ISUSERNAME(string)

Another true/false test, the IsUserName function will return true if the logged-in user’s username matches the string. Here’s an example:

ISUSERNAME(“ccapitula”) = TRUE

USERDOMAIN Function

USERDOMAIN( )

This function returns the domain for the current user when the user is signed into Tableau Server. It will return the Windows domain if the Tableau user is on a domain. The function will return a null string otherwise. Here’s an example:

USERDOMAIN() = interworks1

USERNAME Function

USERNAME( )

The Username function will return the username of the current user. This is the Tableau Server or Tableau Online username if the user is signed in. If the user is not signed in, then it is the local or network username for the Tableau Desktop user. Here’s an example:

[Author]=USERNAME() = ‘ccapitula’

That concludes the user functions. These are great for creating customized views on Tableau Server/Tableau Online by using these functions as filters to limit what the user can see based on their username or domain. It’s another feature of Tableau Software that creates a tremendous amount of flexibility and utility. 

Calculated Fields

Calculated fields can add a whole new layer of insight to your Tableau dashboards. The possibilities are practically endless, but we’ll be covering the fundamentals, especially functions, to help you build a foundational understanding of how and when to use them. Check back for more posts covering:

Introduction

  1. Logical Functions
  2. Number Functions
  3. Date Functions
  4. String Functions
  5. Type Conversion
  6. Aggregate Functions
  7. User Functions

Another great resource for functions is Dan Murray’s best-selling guidebook, “Tableau Your Data!” It features a whole section devoted the functions we’ll be covering in this series and much, much more.

More Tableau Essentials

Want to learn more about Tableau? We have several posts outlining all of Tableau’s fantastic features. Check out the full list on our Tableau Essentials blog channel.

As always, let us know if you have any questions or comments about this post or Tableau in general. If you’re looking for personalized training or help with something bigger, contact us directly!

Want More Tableau Essentials

  1. Tableau Essentials: Chart Types – Introduction
  2. Tableau Essentials: Chart Types – The Text Table
  3. Tableau Essentials: Chart Types – Heat Map
  4. Tableau Essentials: Chart Types – Highlight Table
  5. Tableau Essentials: Chart Types – Symbol Map
  6. Tableau Essentials: Chart Types – Filled Map
  7. Tableau Essentials: Chart Types – Pie Chart
  8. Tableau Essentials: Chart Types – Horizontal Bar Chart
  9. Tableau Essentials: Chart Types – Stacked Bar Chart
  10. Tableau Essentials: Chart Types – Side-by-Side Bar Chart
  11. Tableau Essentials: Chart Types – Treemap
  12. Tableau Essentials: Chart Types – Circle View
  13. Tableau Essentials: Chart Types – Side-by-Side Circle View
  14. Tableau Essentials: Chart Types – Line Charts (Continuous & Discrete)
  15. Tableau Essentials: Chart Types – Dual-Line Chart (Non-Synchronized)
  16. Tableau Essentials: Chart Types – Area Charts (Continuous & Discrete)
  17. Tableau Essentials: Chart Types – Scatter Plot
  18. Tableau Essentials: Chart Types – Histogram
  19. Tableau Essentials: Chart Types – Box-and-Whisker Plot
  20. Tableau Essentials: Chart Types – Gantt Chart
  21. Tableau Essentials: Chart Types – Bullet Graph
  22. Tableau Essentials: Chart Types – Packed Bubbles
  23. Tableau Essentials: Formatting Tips – Introduction
  24. Tableau Essentials: Formatting Tips – Custom Shapes
  25. Tableau Essentials: Formatting Tips – Labels
  26. Tableau Essentials: Formatting Tips – Color
  27. Tableau Essentials: Formatting Tips – Tooltips
  28. Tableau Essentials: Formatting Tips – Maps
  29. Tableau Essentials: Calculated Fields – Introduction
  30. Tableau Essentials: Calculated Fields – Logical Functions
  31. Tableau Essentials: Calculated Fields – Number Functions
  32. Tableau Essentials: Calculated Fields – Date Functions
  33. Tableau Essentials: Calculated Fields – String Functions
  34. Tableau Essentials: Calculated Fields – Type Conversion
  35. Tableau Essentials: Calculated Fields – Aggregate Functions
  36. Tableau Essentials: Calculated Fields – User Functions

More About the Author

Carly Capitula

Principal / Enablement Practice Lead
A Quick Recap of the 2017 DRIVE/ Conference Last week, some of the InterWorks team dropped by Seattle, WA for DRIVE/ 2017 – a conference for professionals in fundraising and ...
Tableau Viz Showcase by Industry: K-12 Education “Data-driving decision making” is a phrase heard in several industries, perhaps none more so than in education. In such a scrutinized ...

See more from this author →

Subscribe to our newsletter

  • I understand that InterWorks will use the data provided for the purpose of communication and the administration my request. InterWorks will never disclose or sell any personal data except where required to do so by law. Finally, I understand that future communications related topics and events may be sent from InterWorks, but I can opt-out at any time.
  • This field is for validation purposes and should be left unchanged.

InterWorks uses cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy. Review Policy OK