I am using Power Apps in Teams which does not offer dropdowns. Instead, I have Combo Box options. I have been struggling to get the combo box working. I am finally displaying the options in the desired column. However, when I use the Distinct function it is still displaying same items multiple times in the combo box.
I am using the following in the Items field.
Distinct('Data Source',ColumnName)
Any suggestions / help greatly appreciated.
I finally figured it out with a ton of web surfing.
I only needed code in the Items element. Under Properties I had to select the fields edit button and add the field Values and move the values field to the top of the list. After doing that the following code works.
Distinct('Data Source',ColumnName)
There is no Primary text element in the Teams version.
I should also update this slightly.
If I use the distinct function in the Items element I get blank options. IE: the correct number of options field display but they are blank.
If I only reference the datasource in the Items element and use the distinct function in the DefaultSelectedItems element then it displays each option multiple times.
Either way I have not successfully gotten a distinct list of options to display.
Hi @jms0529 ,
Indeed the Fluent UI ComboBox (https://learn.microsoft.com/en-us/power-apps/teams/use-the-fluent-ui-controls#combo-box) in Teams is different from the classic ComboBox (https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-combo-box).
Perhaps there's this possibility in the Porperties Pane:
Primary text should be Value.
Hi @jms0529 ,
All seems fine based on the formula you provided. Have you made sure you selected the ["Value"] column in the DisplayFields property?
WarrenBelz
78
Most Valuable Professional
mmbr1606
41
Super User 2025 Season 1
MS.Ragavendar
38