Distinct value select from dropdown

i have created a app


and i have data service

i need to select dropdown parent account in UiPath apps from parent account field in data service i have given the vb expression as
var_Entity.data.Select(Function(x) x.ParentAccount).Distinct.ToListSource
but it didnt show any data inside the dropdown i have created the app variable of listsource and in the events also i have configured but it still didnt show the dropdown value, can somebody please help to resolve the issue @ppr

If you are trying to create a Dropdown in EditGrid, you will need to set it similary:


GetChoiceSet is from Entity table where you create it when setting ParentAccount to be an Choice Set:
image
It will ask you to select Choice Set or Create a new one. New one is the one that I have as GetChoiceSet(“NameOfNewChoiceSet”). “DisplayName” is default from that new choice set. “Status” is my column name in Entity, in your case “ParentAccount”.

If you are still stuck, there are some good videos on Youtube, look for Dropdown and UiPath.
HTH