Why isn't my GetChoiceSet query filtering?

"I need to filter the choice list based on a location. For example, I have a choice list named ‘Location,’ which contains all locations across the globe. In the Apps edit grid view, I want to display only a fewer locations depending on the region. How can I filter the GetChoiceSet(“Location”)?

I am using the query below in the List Source, but it is not filtering.
GetChoiceSet(“Location”).data.Where(Function(c) c.DisplayName = “HQ” And c.Name = “AllHQ”)

In the Choice Set

Name must start with letter, contain only letters and numbers, and have between 3 and 30 characters, and not be a C# or VB keyword.

In the data source can you specify New List(Of Integer?) From {0, 1} ?


In the Column for List source try to use GetChoiceSet("NewHireCommsMasterLocation").data.Where(Function(c) c.DisplayName="HQA" Or c.DisplayName="ALLHQ").ToList()

Or use

new ListSource(Of string) ({ "HQA", "ALLHQ"})