In a powerapp , I have a two combo boxes and a check box
1 . 'NewComboBox' with values : Site , Supplier , City
2. 'ComboBox_Bcc' which is a drop down depends on selection in NewComboBox . e.g If point 1 is City, Point 2 displays all City names.
3. 'CheckBox1' , when checked , it gets distinct values of NewComboBox into Bcc combo box.
E.g If NewCombox = City , and CheckBox1 is checked, then all City's will be selected into Bcc_combobox.
Issue :
A. When i select NewComboxBox = Site and Check the 'CheckBox1' , it is selecting all Site Names as expected .
B. When i select NewComboxBox = Supplier and Check the 'CheckBox1' , it is selecting all Supplier Names as expected .
C. But when newcombobox = City , and when i check 'CheckBox1' , it doesnt select any city names , though city names are listing in drop down on bccComboBox.
Here is the script i am using for the 'OnSelect' : (CheckBox1):
If(Checkbox1.Value,Set(Glob,Distinct('Site Admins',If(NewComboBox.Selected.Value = "Site",'Site Name', NewComboBox.Selected.Value = "Supplier",Supplier, NewComboBox.Selected.Value = "City",City) ) ),Set(Glob,Blank()))
Glob is a value in 'defaultselecteditems' in ComboBox_Bcc.
The visual looks like below where you can see , Point A, B works as expected but Point C is not selecting any values in Bcc.
May i know what wrong in my formulae where only City specific values are not being selected into Bcc when i check 'Checkbox'
