'in powerapps how do I get a collection of the selected values of a multiselect from a sharepoint list WITHOUT using a combobox

I have a sharepoint list that has a multiselect column. in powerapps I would like to make a collection of the selected values.

for example I have a multiselect column named category that have choices One, Two, Three, and Four. I have selected Two and Four.

my code in powerapps Integrated Form OnEdit is

Clear(myCollection); 
ForAll(Choices([@SMEList].Category), Collect(myCollection,ThisRecord.Value));

but that is giving me One, Two, Three and Four. I only want the selected Values (Two and Four)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source