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 / Why does my dependent ...
Power Apps
Answered

Why does my dependent combo box break when I use Distinct on the parent combo box?

(0) ShareShare
ReportReport
Posted on by 831 Moderator

Really curious as to why this breaks. I have a combo box that reads from a column(column 1) in a table. This column has duplicates. The dependent combo box also reads from the same table but column 2. If I don't use Distinct on the first combo box then everything works fine except, I have all the duplicate values from column 1 in the combo box. When I add Distinct to the items for that combo box then I get a de-duped list but the dependent combo box breaks. Why is that? Is it because both combo boxes are using the same table?

Categories:
I have the same question (0)
  • futr_vision Profile Picture
    831 Moderator on at

    Interesting. If I change the dependent combo box items to be

     

    Filter('DataSource', 'DataSourceColumnValue' =Control.Selected.Value)

     

    from

     

    Filter('DataSource', 'DataSourceColumnValue' =Control.Selected.DataSourceColumnValue)

     

    Then it works.

     

    I think I explained that correct. Still curious why the first works and not the second which is what PowerApps enters by default when you use the 'Depends On' functionality of the control.

  • Verified answer
    timl Profile Picture
    36,815 Super User 2026 Season 1 on at

    Hi @futr_vision 

    The Distinct function returns a single column table with the column name value. That's the reason why when you set the Items property of a combo box to Distinct, the syntax to reference the value is Control.Selected.Value

    https://learn.microsoft.com/en-gb/power-platform/power-fx/reference/function-distinct

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard