Skip to main content

Notifications

Community site session details

Community site session details

Session Id : dMTI0bJNsBncdUR3JEua9/
Power Apps - Building Power Apps
Answered

PowerApps In Teams Combo Box Distinct Function Not Working

Like (1) ShareShare
ReportReport
Posted on 27 Jul 2023 19:37:19 by 36

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. 

  • PHemingway610 Profile Picture
    123 on 22 Mar 2025 at 05:23:58
    PowerApps In Teams Combo Box Distinct Function Not Working
    THANK YOU.  Been stuck on this all afternoon and evening.  Finally got the answer here and now it works!  Crazy that it has to be this way.  
  • CU23011914-0 Profile Picture
    63 on 23 Jan 2025 at 19:14:52
    PowerApps In Teams Combo Box Distinct Function Not Working
    Jeez that's fun to troubleshoot.
     
    Thanks a ton.
  • jms0529 Profile Picture
    36 on 31 Jul 2023 at 19:20:02
    Re: PowerApps In Teams Combo Box Distinct Function Not Working

    @BCBuizer 

     

    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)

  • jms0529 Profile Picture
    36 on 31 Jul 2023 at 16:34:03
    Re: PowerApps In Teams Combo Box Distinct Function Not Working

    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. 

  • Verified answer
    BCBuizer Profile Picture
    22,070 Super User 2025 Season 1 on 27 Jul 2023 at 19:58:58
    Re: PowerApps In Teams Combo Box Distinct Function Not Working

    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:

    BCBuizer_0-1690487915731.png

     

    Primary text should be Value.

  • jms0529 Profile Picture
    36 on 27 Jul 2023 at 19:51:43
    Re: PowerApps In Teams Combo Box Distinct Function Not Working

    @BCBuizer Teams version of Power Apps does not appear to have a DisplayFields Property. 

     

    jms0529_0-1690487469003.png

     

  • BCBuizer Profile Picture
    22,070 Super User 2025 Season 1 on 27 Jul 2023 at 19:45:20
    Re: PowerApps In Teams Combo Box Distinct Function Not Working

    Hi @jms0529 ,

     

    All seems fine based on the formula you provided. Have you made sure you selected the ["Value"] column in the DisplayFields property?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 78 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 38

Overall leaderboard