Hello everyone,
I'm aiming to establish two dropdown lists within my form
one to exhibit Tech users and another for Sales users. This will be accomplished by utilizing data from the user manager table and segregating users based on their role. Specifically, when a user's role is identified as 'sales,' they should appear in the sales dropdown.
Likewise, the second type in the second list
How can I achieve this using expressions, and what specific column types should be assigned to 'Technical' and 'Sales'?
thank you
Solved! Go to Solution.
You can select an appropriate list of users to be displayed in each of the fields by setting a proper constraint based on the role in the SELECT statement.
The expression to use in the first one will be:
FILTER("USER",[Role]="Tech")
The second one will be:
FILTER("USER",[Role]="Sales")
For this kind of operation, I would recommend using the FILTER() expression, which allow you to catch the key-column automatically.
For reference:
User | Count |
---|---|
25 | |
15 | |
4 | |
3 | |
3 |