Dropdown Items property
[
"Nick Lim"
]
Dropdown OnChange property
If(Dropdown3.Selected.Value = "Nick Lim",
ClearCollect(
FilteredList,
Filter(
'Incident Management',
OperatorServiceDesk.Value = "Nick Lim" &&
(
Status.Value = "New" ||
Status.Value = "Waiting for Customer" ||
Status.Value = "Waiting for 3rd Party"
)
)
)
)
Result

Hi everyone, the above is my initial setup where I can pick a name via the dropdown and the gallery will display all tickets that has been assigned to the selected person.
However, now I would like to include the total amount of active tickets that the person has next to its name. To do that, I will change the code in the Dropdown Items property to:
[
"Nick Lim" & " " & "(" &
Text(
CountRows(
Distinct(
Filter('Incident Management',
OperatorServiceDesk.Value = "Nick Lim" &&
(
Status.Value = "New" ||
Status.Value = "Waiting for Customer" ||
Status.Value = "Waiting for 3rd Party"
)
),
ID
)
)
) &
")"
]
Result

So as you can see, now it has number next to the name, and currently 1 ticket is assigned to the person. However, my gallery is not displaying the ticket unless I change the Dropdown OnChange property to:
If(Dropdown3.Selected.Value = "Nick Lim (1)"
Which is not ideal because the number is changed from time to time.
So I was wondering if we can use wildcard right after "Nick Lim" or is there a better way to do it?