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 / Filter choice column b...
Power Apps
Answered

Filter choice column based on dropdown selection

(0) ShareShare
ReportReport
Posted on by 2,567

Hi I am trying to create cascading dropdown menu from two Choice columns in a SharePoint list.

 

The first dropdown i have.

Distinct(Choices(CategoryData.Category),Value)

My second dropdown should filter based on the selection from the first.

Distinct(Filter(CategoryData,Category.Value = Dropdown1.SelectedText.Value),SubCategory1.Value)

 

Now the above seems to work but im not sure it is the correct way and do i need to use distinct or can i use only Filter?
Not sure if i should use Choices( or Distinct( or a combination.

 

I have tried using only filter and adding choices( but im new to this so the code keeps giving me errors or wont load any data.

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at
    @JimmyWork
    In your first formula the DISTINCT function is redundant. The CHOICES function will already produce a list of unique values.

    #1
    Choices(CategoryData.Category)

    The SELECTEDTEXT property has been deprecated. To ensure your app is future-proofed do not use it.

    #2
    Distinct(Filter(CategoryData,Category.Value = Dropdown1.Selected.Value),SubCategory1.Value)

    Those are my two suggestions for improvement

    —-
    Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.
  • JimmyW Profile Picture
    2,567 on at

    @mdevaney Thank you so much for the help.

    I have been using SelectedText, when i try to change this in some places i can only use for example Dropdown1.Selected

    If i type Dropdown1.Selected.Value i get an error saying Expected Record value. If i  only use Dropdown1.Selected it works fine but i wonder if that is the correct 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

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard