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 / Unable to use distinct...
Power Apps
Unanswered

Unable to use distinct with microsoft list

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

I'm trying to create a cascading set of dropdown boxes using microsoft lists for the sorting and only filtering in powerapps. I have a list in which all information is set to single line of text. Using the distinct function I am unable to get any choices in my dropdown box. Any idea what I'm doing wrong or how I can troubleshoot further? I initially used choices in the list , and tried 'choices' instead but this also produces an empty dropdownbox.

 

Karlosbarn_0-1700392565407.png

 

Categories:
  • MudassarSZ365 Profile Picture
    591 on at

    Hi @Karlosbarn ,

    you can try this 

    Distinct([@YourListName], MyColumn)

     

    If you think my solution is helpful for you, then please accept it. 😊 

  • Karlosbarn Profile Picture
    4 on at

    Thank you for the response. Sadly it doesn't change. There is no actual error (with your solution or mine) but there are no selection options.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Karlosbarn,

    Here are two direction for your reference:

    1). First time you used a Choice column, well, to refer to a Choice column in Distinct() function, you should write:

    Distinct(list_name,Rutt.Value)

    2). Second time, you changed your Choice column into a single-line-of-text column, however, your Distinct() does not work either, that because you don't refresh your data source in Power Apps, so Power Apps recgonize Rutt as the Choice type column still.

    3). Since you have changed the column type into text, now, you just need to refresh your data source in Power Apps, then use

    Distinct(list_name,Rutt)​
  • Karlosbarn Profile Picture
    4 on at

    Thank you for the reply @v-qiaqi-msft Qi.

    I did all of these steps including refreshing the data source without success.

     

    It turns out the problem was related to modern controls in which all or no "fields" were added to the dropdown control. I now have a working dropdown box and now I'm trying to implement a cascading function with a secondary box.

     

    Please see the following images.

     

    I am unable to to use Distinct and filter on the second box.

     

     

    13.png
    11.png
    12.png

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard