Skip to main content

Basically, I want to include a table of employee performance and then show that employees department numbers next to that for comparison.

 

For example: Select Jeff and one table would show data for Jeff and the other would show data for all of Jeff's department.

 

I realize that I could make the user have to select a department that then reduces (relevant values) the employee selection and then not have the employee selection affect the department table. However, the way this would be used doesn't lend itself to that for a few reasons. So I'd like the selecting of the employee to automatically change the value of the other table to Jeff's department.

 

Department names and employees change over time so any solution that requires me to setup fixed values wouldn't work because it would break the next month when it updated with different employee or department names.

1 réponse
  1. 26 avr. 2024, 17:40

    @Jennifer Cole​ 

    Hi, in this case you may:

    a. Right clic on Employees Name field in the data pane, and select create set. Choose Jeff and then click on OK. The default set name would be [Employees Name Set]

    b. Then you may create a calculated field:

    {FIXED [Dapartment]:MAX([Employees Name Set])}

    c. After that, in your first detail sheet, drag the set and add it to the filter shelf.

    d. Then, in your second sheet, add the calculated field created on b) and select the true value.

    e. Finally show the set control in your dashboard:

    @Jennifer Cole​ Hi, in this case you may:a. Right clic on Employees Name field in the data pane, and select create set. Choose Jeff and then click on OK.If this post resolves the question, would you be so kind to "Select as Best"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.

     

    Regards,

     

    Diego Martinez

    Tableau Visionary and Forums Ambassador