web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps In Teams Com...
Power Apps
Unanswered

PowerApps In Teams Combo Box Distinct Function Not Working

(1) ShareShare
ReportReport
Posted on 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. 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @jms0529 ,

     

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

  • jms0529 Profile Picture
    36 on at

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

     

    jms0529_0-1690487469003.png

     

  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    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 at

    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. 

  • jms0529 Profile Picture
    36 on at

    @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)

  • CU23011914-0 Profile Picture
    63 on at
    Jeez that's fun to troubleshoot.
     
    Thanks a ton.
  • PHemingway610 Profile Picture
    129 on at
    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.  

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard