Populate dropdown with all the distinct values in the data variable

Hi, I am trying to populate dropdown with all the distinct values in the data variable. But I am getting below “Text type is not assignable to list type”

Here is the solution to this problem

2 Likes