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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Distinct result of a c...
Power Apps
Answered

Distinct result of a combobox with filter

(1) ShareShare
ReportReport
Posted on by 169

Hello I have a combox where the data that are showing is based on a dropdown

this is the code that I use on my combo box but I have a lot of duplicate data 

Filter('public.w_encours_ors_tps_re'; code_agence = CodeAgence_1.Selected.Value)

So I wanted to add a distinc like this

Distinct(Filter('public.w_encours_ors_tps_re'; code_agence = CodeAgence_1.Selected.Value);no_or)

but it dont work it result in blank (no_or is the data I want in my combobox )

any idea why ?

 

Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Dive1 ,

     

    Based on your description, I have made a test, but there are no mistakes.

     

    Your code is correct, so I suggest you check whether there are items in “public.w_encours_ors_tps_re” that match the selected value of dropdown.

     

    Collection “public.w_encours_ors_tps_re” :

    vjefferni_0-1668757857241.png

     

    Test:

    vjefferni_1-1668757857244.png

     

    Result:

    vjefferni_2-1668757857247.png

     

    In addition, please add ".Result" following the Distinct function to declare the column name, so it can be recognised easily by the Combo box Control.

    Distinct(...).Result

     

    Best regards,

  • Dive1 Profile Picture
    169 on at

    yes thanks it was because of the .Result that I was having nothing, that was not  clear that I have to add a .Result because I didn't have errors when I don't add it

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard