I have the following Table in Tableau server and using USERNAME() will return the 'Employee' value.
+----------+---------+----------+
| Employee | Manager | Job Role |
+----------+---------+----------+
| jdoe | hwu | Analyst |
| anon | hwu | IT |
| jlaw | hwu | Analyst |
| kreaves | bpitt | Analyst |
| jlopez | bpitt | IT |
| mmoss | bpitt | IT |
+----------+---------+----------+
Goal: Find users similar to self based on parameter. Parameter values - Manager, Job Role.
Example: My USERNAME() is jdoe. When I choose the parameter value 'Manager', tableau filters and gives a result of employees under 'hwu' only, as shown below.
+----------+
| Employee |
+----------+
| jdoe |
| anon |
| jlaw |
+----------+
Similarly, when Job Role is selected, it filters to a list of users with the job role 'Analyst', as shown below.
+----------+
| Employee |
+----------+
| jdoe |
| jlaw |
| kreaves |
+----------+
I know there should be a simple solution to this using LOD calculations, but I am stumped on how to approach this!