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 function on c...
Power Apps
Answered

Distinct function on condition based column

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

 

I think I'm facing a very easy problem, I want to obtain different Items for a dropdown box by selecting a different column from the table "Options". The information of the column to select is in the ColumnVariable.

 

Distinct(Filter(Options;ID=13);ColumnVariable).Result

 

My problem is that if I run the code above I get the ColumnVariable as the only item in the dropdown.

Any Ideas?

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @ForDrone94,

    Do you want to select different column values dynamically from the Options table?

    Could you please share a bit more about your scenario?

     

    Actually, if you want to get distinct column values from the data source, you should reference to column name with a literal text rather than a variable.

    If you want to select column dynamically, you should use the exhaustive list of method.

     

     

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
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard